- Notifications
You must be signed in to change notification settings - Fork876
Open
Description
Checks
- I understand project setup issues should be asked onStackOverflow or inGitHub 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 requests2. Make a HEAD request through the proxy and without the proxy and compare the content-length response header. The content-length response headerfor the request through the proxy is 0Expected 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?
irrelevantWhat OS/version and node/version are you seeing the problem?
Fedora Linux 40 (Toolbx Container Image) x86_64Node: 18.0.0 -~/.nvm/versions/node/v18.0.0/bin/nodenpm: 9.9.3 -~/.nvm/versions/node/v18.0.0/bin/npm
Additional context (optional)
No response
Metadata
Metadata
Assignees
Labels
No labels