Skip to content

Commit 923dffd

Browse files
author
Daniel Herzog
committed
Fix for DFL-3297: Add "text/json" to "text types" so it can be displayed
1 parent 1a67b18 commit 923dffd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/network/network_service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ cls.NetworkLoggerService = function(view)
132132
"application/xslt+xml", "text/xsl", "application/xml",
133133
"text/css", "text/plain", "application/x-javascript",
134134
"application/json", "application/javascript", "text/javascript",
135-
"application/x-www-form-urlencoded",
135+
"application/x-www-form-urlencoded", "text/json",
136136
"text/xml",
137137
""]; // <- Yes really.
138138
// It's frelling silly, but there's a bug with core not giving us content types
@@ -194,7 +194,7 @@ cls.NetworkLoggerService = function(view)
194194
"application/xslt+xml", "text/xsl", "application/xml",
195195
"text/css", "text/plain", "application/x-javascript",
196196
"application/json", "application/javascript", "text/javascript",
197-
"application/x-www-form-urlencoded"];
197+
"application/x-www-form-urlencoded", "text/json"];
198198

199199
var resparg = [[DATA_URI, DECODE],
200200
text_types.map(function(e) { return [e, [STRING, DECODE]]})

src/resource-manager/resource_util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ cls.ResourceUtil.mime_type_map = {
8888
"application/javascript": "script",
8989
"text/javascript": "script",
9090
"application/json": "script",
91+
"text/json": "script",
9192

9293
"image/png": "image",
9394
"image/gif": "image",

0 commit comments

Comments
 (0)