Open
Description
Option --proxy-options.headers '{"foo": "bar"}'
does not seem to be applied.
Is this supposed to work or am I doing something wrong?
Environment Versions
- OS Type: Windows 10
- Node version: v14.20.0
- http-server version: v14.1.1
Steps to reproduce
http-server -c-1 --proxy http://localhost:8070/ --proxy-options.headers '{"foo": "bar"}' --proxy-options.secure false
- start server
- send request that is handled by the proxy
- Inspect the request (in my case the server is a spring boot application)
Expected result
foo: bar
header is present in the proxy target request
Actual result
header is not present