summaryrefslogtreecommitdiff
path: root/content/handlers/text
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/text')
-rw-r--r--content/handlers/text/textplain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/handlers/text/textplain.c b/content/handlers/text/textplain.c
index af990d1d7..692ba7ebe 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -1331,6 +1331,12 @@ nserror textplain_init(void)
lwc_string_unref(textplain_default_charset);
}
+ error = content_factory_register_handler("application/json",
+ &textplain_content_handler);
+ if (error != NSERROR_OK) {
+ lwc_string_unref(textplain_default_charset);
+ }
+
return error;
}