Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy target request header not present #851

Open
andreaswilli opened this issue Jan 26, 2023 · 1 comment
Open

Proxy target request header not present #851

andreaswilli opened this issue Jan 26, 2023 · 1 comment
Labels

Comments

@andreaswilli
Copy link

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

  1. OS Type: Windows 10
  2. Node version: v14.20.0
  3. 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
  1. start server
  2. send request that is handled by the proxy
  3. 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

@github-actions
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant