Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db
...commit
http://git.netsurf-browser.org/netsurf.git/commit/9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db
...tree
http://git.netsurf-browser.org/netsurf.git/tree/9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db
The branch, master has been updated
via 9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db (commit)
from 7458cfa9992f66b87f3effef5c86405888f9410b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db
commit 9fa6c1e0fb2d6f5a0c95e7680b0ad24f9f7615db
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
Text handling: Display application/json, rather than offering download.
diff --git a/content/handlers/text/textplain.c
b/content/handlers/text/textplain.c
index af990d1..692ba7e 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;
}
-----------------------------------------------------------------------
Summary of changes:
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 af990d1..692ba7e 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;
}
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org