-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
Node 22.14.0, httpxy 0.1.7
Reproduction
https://github.com/ImranR-TI/httpxy_multiple_fwslash_bug_minimal
- Run
node server.js
andnode proxy.js
- Visit
http://localhost:3005/
, seeHello World!
as expected - Visit
http://localhost:3005/test
, seeTest Page!
as expected - Visit
http://localhost:3005//test
(note the double forward slash//
), seeHello World!
instead of the expectedTest Page!
(almost like like the//test
part of the request URL was cut off, not sure if that's what's actually happening).
Describe the bug
When the request being proxied has multiple consecutive forward slashes, the proxy seems to break and cut off the rest of the URL.
This doesn't happen with the latest (2018) version of the old http-proxy
module, so that might be a clue.
Additional context
No response
Logs
pi0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working