pixl-server-web 1.3.14 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/request.js +2 -2
- package/package.json +10 -10
- package/web_server.js +2 -3
package/lib/request.js
CHANGED
|
@@ -505,7 +505,7 @@ module.exports = class Request {
|
|
|
505
505
|
var headers = arguments[2] || {};
|
|
506
506
|
var payload = args.query.pretty ? JSON.stringify(json, null, "\t") : JSON.stringify(json);
|
|
507
507
|
|
|
508
|
-
if (args.query.format && (args.query.format.match(/html/i)) && args.query.callback) {
|
|
508
|
+
if (args.query.format && (args.query.format.match(/html/i)) && args.query.callback && self.config.get('http_legacy_callback_support')) {
|
|
509
509
|
// old school IFRAME style response
|
|
510
510
|
headers['Content-Type'] = "text/html";
|
|
511
511
|
self.sendHTTPResponse( args,
|
|
@@ -516,7 +516,7 @@ module.exports = class Request {
|
|
|
516
516
|
'</script></head><body> </body></html>' + "\n"
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
|
-
else if (args.query.callback) {
|
|
519
|
+
else if (args.query.callback && self.config.get('http_legacy_callback_support')) {
|
|
520
520
|
// JSON with JS callback wrapper
|
|
521
521
|
headers['Content-Type'] = "text/javascript";
|
|
522
522
|
self.sendHTTPResponse( args,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixl-server-web",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.16",
|
|
4
4
|
"description": "A web server component for the pixl-server framework.",
|
|
5
5
|
"author": "Joseph Huckaby <jhuckaby@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/jhuckaby/pixl-server-web",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"ssl"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"
|
|
24
|
-
"pixl-perf": "^1.0.0",
|
|
25
|
-
"pixl-acl": "^1.0.1",
|
|
23
|
+
"async": "3.2.2",
|
|
26
24
|
"class-plus": "^1.0.0",
|
|
27
|
-
"formidable": "2.0.1",
|
|
28
25
|
"errno": "0.1.7",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
26
|
+
"formidable": "2.1.1",
|
|
27
|
+
"mime": "2.5.2",
|
|
28
|
+
"pixl-acl": "^1.0.1",
|
|
29
|
+
"pixl-perf": "^1.0.0",
|
|
30
|
+
"pixl-server": "^1.0.0",
|
|
31
|
+
"stream-meter": "1.0.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"pixl-
|
|
35
|
-
"pixl-
|
|
34
|
+
"pixl-request": "^2.0.0",
|
|
35
|
+
"pixl-unit": "^1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"test": "pixl-unit test/test.js"
|
package/web_server.js
CHANGED
|
@@ -61,12 +61,11 @@ module.exports = Class({
|
|
|
61
61
|
"http_log_socket_errors": true,
|
|
62
62
|
"http_full_uri_match": false,
|
|
63
63
|
"http_request_timeout": 0,
|
|
64
|
-
|
|
65
64
|
"http_req_max_dump_enabled": false,
|
|
66
65
|
"http_req_max_dump_dir": "",
|
|
67
66
|
"http_req_max_dump_debounce": 10,
|
|
68
|
-
|
|
69
|
-
"
|
|
67
|
+
"http_code_response_headers": null,
|
|
68
|
+
"http_legacy_callback_support": true
|
|
70
69
|
},
|
|
71
70
|
|
|
72
71
|
conns: null,
|