Skip to content

Commit

Permalink
Firefox will try to parse the response from POST requests, causing a …
Browse files Browse the repository at this point in the history
…syntax error message in the Web Console. Basically an addition to socketio#501
  • Loading branch information
mixu committed Mar 27, 2012
1 parent e7d7582 commit d80010d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transports/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d80010d

Please sign in to comment.