We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656c28c commit 91ddb9dCopy full SHA for 91ddb9d
1 file changed
examples/proxy/proxy.js
@@ -213,8 +213,9 @@ function getHeaders ({
213
`proto=${socket.encrypted ? 'https' : 'http'}`,
214
`host=${printIp(authority || host || '')}`
215
].join(';'))
216
- } else {
217
- result.push('forwarded', forwarded)
+ } else if (forwarded) {
+ // forwarded should not be included in response headers.
218
+ throw new createError.BadGateway()
219
}
220
221
if (httpVersion && proxyName) {
0 commit comments