Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP forwarder should only forward valid HTTP status codes #35

Closed
jancurn opened this issue Jan 22, 2019 · 1 comment
Closed

HTTP forwarder should only forward valid HTTP status codes #35

jancurn opened this issue Jan 22, 2019 · 1 comment
Labels
bug Something isn't working.

Comments

@jancurn
Copy link
Member

jancurn commented Jan 22, 2019

Otherwise the proxy can crash with this error:

RangeError: Invalid status code: 0
    at ServerResponse.writeHead (_http_server.js:194:11)
    at HandlerForward.onTrgResponse (/home/bob/proxy/node_modules/proxy-chain/build/handler_forward.js:158:30)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:543:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)
    at Socket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:597:20)
@jancurn jancurn added the bug Something isn't working. label Jan 22, 2019
@jancurn
Copy link
Member Author

jancurn commented Sep 8, 2019

Should be fixed in the new release

@jancurn jancurn closed this as completed Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant