Skip to content

Commit

Permalink
Merge pull request socketio#806 from mixu/upstream/fix-ff-xhr-post-sy…
Browse files Browse the repository at this point in the history
…ntax

Fix "syntax error" message on FF, resulting from FF trying to parse the POST result as XML due to it not having a response content-type
  • Loading branch information
rauchg committed Mar 27, 2012
2 parents e7d7582 + d80010d commit b9c3255
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 b9c3255

Please sign in to comment.