Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed JSONP response content-type to application/javascript

  • Loading branch information...
commit fb98da50be91978dc186f2ccc328137133c33766 1 parent 89472b9
@mhoofman mhoofman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 server.js
View
4 server.js
@@ -50,11 +50,11 @@ http.createServer(function (request, response) {
if (callback) {
var jsonp = callback + "(" + json_resp + ");";
- response.writeHead(200, {'content-type': 'text/plain'});
+ response.writeHead(200, {'content-type': 'application/javascript'});
response.end(jsonp);
} else {
response.writeHead(200, {'content-type': 'application/json'});
response.end(json_resp);
}
-}).listen(process.env.PORT || 8080);
+}).listen(process.env.PORT || 3000);
Please sign in to comment.
Something went wrong with that request. Please try again.