Permalink
Browse files

Firefox will try to parse the response from POST requests, causing a …

…syntax error message in the Web Console. Basically an addition to socketio#501
  • Loading branch information...
1 parent e7d7582 commit d80010dcf0ad9fa21362eb2388799fc1b43b71de @mixu committed Mar 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/transports/http.js
View
@@ -46,7 +46,7 @@ HTTPTransport.prototype.handleRequest = function (req) {
var buffer = ''
, res = req.res
, origin = req.headers.origin
- , headers = { 'Content-Length': 1 }
+ , headers = { 'Content-Length': 1, 'Content-Type': 'text/plain; charset=UTF-8' }
, self = this;
req.on('data', function (data) {

0 comments on commit d80010d

Please sign in to comment.