http-party/http-server

Request proxying of custom HTTP headers

Open

#652 geöffnet am 8. Sept. 2020

Auf GitHub ansehen
 (5 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (1.497 Forks)batch import
Hacktoberfestgood first issueminor versionstale

Repository-Metriken

Stars
 (13.088 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

  1. Start http-server with the -P parameter pointing to a backend server that is reachable.
  2. Send a request, containing a custom HTTP header, to http-server that should be proxied to the configured server.

What did you expect to happen? I expect the custom HTTP header to be available in the request as it is received in the backend server.

If the issue is a feature request, what is the motivation / use case for it? I use http-server to run a development version of my Angular web application. The application needs data from a REST endpoint that requires a custom HTTP header to be present.

Tell us about your environment

  • **exact http-server version:**0.12.3
  • **Node version:**8.10.0
  • **Platform:**Windows 10

Contributor Guide