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

Setting Content-Type header in sendProxyRequest when parseReqBody throws exception #472

Open
gman-76 opened this issue Nov 19, 2020 · 0 comments

Comments

@gman-76
Copy link

gman-76 commented Nov 19, 2020

Not sure why this has started happening now but line 61, setting the Content-Length header started throwing:
Error: Can't set the headers after they are sent.

For now I commented this line to get package to function as expected.

Simply setting parseReqBody to false in options does not work because then there is some issue in closing the request so seems the .write(body) or .end() calls are required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant