We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The endpoint behind a Hapi.js proxy is receiving duplicated "Content-Type" header on the following scenario:
a) settings.passThrough = true b) the request to the proxy includes a "Content-Type" header
Looking at the code on proxy.js file, I found this:
//proxy.js, line: 54 if (settings.passThrough) { options.headers = Hoek.clone(req.headers); ... }
followed by this:
// proxy.js, line: 76 var contentType = req.headers['content-type']; if (contentType) { options.headers['Content-Type'] = contentType; }
I think that, if the second section is really needed, it should consider the settings.passThrough option too.
The text was updated successfully, but these errors were encountered:
cjihrig
Successfully merging a pull request may close this issue.
The endpoint behind a Hapi.js proxy is receiving duplicated "Content-Type" header on the following scenario:
a) settings.passThrough = true
b) the request to the proxy includes a "Content-Type" header
Looking at the code on proxy.js file, I found this:
followed by this:
I think that, if the second section is really needed, it should consider the settings.passThrough option too.
The text was updated successfully, but these errors were encountered: