pixl-server-web
Advanced tools
Comparing version 1.3.15 to 1.3.16
@@ -508,3 +508,3 @@ // Simple HTTP / HTTPS Web Server | ||
if (args.query.format && (args.query.format.match(/html/i)) && args.query.callback) { | ||
if (args.query.format && (args.query.format.match(/html/i)) && args.query.callback && self.config.get('http_legacy_callback_support')) { | ||
// old school IFRAME style response | ||
@@ -520,3 +520,3 @@ headers['Content-Type'] = "text/html"; | ||
} | ||
else if (args.query.callback) { | ||
else if (args.query.callback && self.config.get('http_legacy_callback_support')) { | ||
// JSON with JS callback wrapper | ||
@@ -523,0 +523,0 @@ headers['Content-Type'] = "text/javascript"; |
{ | ||
"name": "pixl-server-web", | ||
"version": "1.3.15", | ||
"version": "1.3.16", | ||
"description": "A web server component for the pixl-server framework.", | ||
@@ -5,0 +5,0 @@ "author": "Joseph Huckaby <jhuckaby@gmail.com>", |
@@ -64,8 +64,7 @@ // Simple HTTP / HTTPS Web Server | ||
"http_request_timeout": 0, | ||
"http_req_max_dump_enabled": false, | ||
"http_req_max_dump_dir": "", | ||
"http_req_max_dump_debounce": 10, | ||
"http_code_response_headers": null | ||
"http_code_response_headers": null, | ||
"http_legacy_callback_support": true | ||
}, | ||
@@ -72,0 +71,0 @@ |
229201
3655