Hi,
Am 24.03.2017 um 17:54 schrieb Thomas Sheppard:
Hi everyone,
Could someone help us with some info on how to rewrite a request
header before its passed to the backend servers?
Trying
http-request add-header sec-websocket-key abc123
or
reqadd sec-websocket-key:\ abc123
Does not work the key remains the same as it was in the original request.
In case this is still within the http mode (as Aleksandar mentioned),
you must not use reqadd or http-request add-header, those features do
not replace an existing header, but add a new one.
Use approriate replace features like [1]:
http-request replace-header / replace-value
or [2]:
reqrep
cheers,
lukas
[1]
https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#http-request
[2] https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#reqrep