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/socket.io#501
  • Loading branch information
vanquisher0411 committed Feb 29, 2024
1 parent 8ae3c0c commit 6fd91df
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 6fd91df

Please sign in to comment.