From 9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 14 Aug 2018 16:14:10 +0100 Subject: Text handling: Display application/json, rather than offering download. --- content/handlers/text/textplain.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3