Open
Description
Checks
- I understand project setup issues should be asked on StackOverflow or in GitHub Discussions.
- I updated to latest
http-proxy-middleware
.
Describe the bug (be clear and concise)
content-length is not passed along for HEAD requests (content-length is 0)
Step-by-step reproduction instructions
1. Create app with http-proxy-middleware, and forward it to an app that supports HEAD requests
2. Make a HEAD request through the proxy and without the proxy and compare the content-length response header. The content-length response header for the request through the proxy is 0
Expected behavior (be clear and concise)
The content-length header should reflect the content-length passed along by the HEAD response from the server you are proxying to
How is http-proxy-middleware used in your project?
used to setup a proxy
What http-proxy-middleware configuration are you using?
irrelevant
What OS/version and node/version are you seeing the problem?
Fedora Linux 40 (Toolbx Container Image) x86_64
Node: 18.0.0 - ~/.nvm/versions/node/v18.0.0/bin/node
npm: 9.9.3 - ~/.nvm/versions/node/v18.0.0/bin/npm
Additional context (optional)
No response
Metadata
Metadata
Assignees
Labels
No labels