Skip to content

Commit

Permalink
Add the new --preserve-user-agent-proxy-header config options
Browse files Browse the repository at this point in the history
  • Loading branch information
leeturner committed Jul 1, 2024
1 parent 00ee642 commit 54386b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ HTTP/2 can be disabled separately for plain text (HTTP) and TLS (HTTPS):

// Send the Host header in the original request onwards to the system being proxied to
.preserveHostHeader(false)

// As of WireMock `3.7.0`, when in proxy mode, this option will transfer the original `User-Agent` header from the client to the proxied service.
.preserveUserAgentProxyHeader(true)

// Override the Host header sent when reverse proxying to another system (this and the previous parameter are mutually exclusive)
.proxyHostHeader("my.otherdomain.com")
Expand Down
3 changes: 3 additions & 0 deletions _docs/standalone/java-jar.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ option is not present, the Host header value is deducted from the proxy
URL. This option is only available if the `--proxy-all` option is
specified.

`--preserve-user-agent-proxy-header`: As of WireMock `3.7.0`, when in proxy mode, this option will transfer the
original `User-Agent` header from the client to the proxied service.

`--proxy-via`: When proxying requests (either by using --proxy-all or by
creating stub mappings that proxy to other hosts), route via another
proxy server (useful when inside a corporate network that only permits
Expand Down

0 comments on commit 54386b4

Please sign in to comment.