diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/text/textplain.c | 6 |
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; } |