You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polling connection request.headers.origin has invalid characters cause uncaughtException throw.
error stack:
TypeError: The header content contains invalid characters
at storeHeader (_http_outgoing.js:319:11)
at ServerResponse.OutgoingMessage._storeHeader (_http_outgoing.js:228:9)
at ServerResponse.writeHead (_http_server.js:221:8)
at IncomingMessage.onEnd (/opt/pushnode/node_modules/engine.io/lib/transports/polling.js:180:9)
at emitNone (events.js:86:13)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
Steps to reproduce (if the current behaviour is a bug)
start a socket.io server
send a polling connection request, headers.origin contain invalid characters(\x027)
The text was updated successfully, but these errors were encountered:
ttol66
changed the title
polling connection request.headers.origin has invalid char cause unhandled exception throw
polling connection request.headers.origin has invalid char cause uncaughtException throw
Jul 13, 2017
ttol66
changed the title
polling connection request.headers.origin has invalid char cause uncaughtException throw
polling connection request.headers.origin has invalid characters cause uncaughtException throw
Jul 13, 2017
Since the 'Origin' header is used as response header, a value with invalid characters would trigger
'The header content contains invalid characters' errors.
Closessocketio#517
Since the 'Origin' header is used as response header, a value with invalid characters would trigger
'The header content contains invalid characters' errors.
Closes#517
You want to:
Current behaviour
polling connection request.headers.origin has invalid characters cause uncaughtException throw.
error stack:
Steps to reproduce (if the current behaviour is a bug)
Expected behaviour
disconnect client connection , don't throw error, maybe emit an error event
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
check headers.origin value before writeHeader() or just wrap writeHeader() in try/catch
nodejs/node@7bef1b7907
The text was updated successfully, but these errors were encountered: