Text handling: Display application/json, rather than offering download.

This commit is contained in:
Michael Drake 2018-08-14 16:14:10 +01:00
parent 7458cfa999
commit 9fa6c1e0fb
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}