Skip to content

Commit

Permalink
docs: note which header expressions cannot be used for request headers (
Browse files Browse the repository at this point in the history
#8138)

As discussed in #8127, some custom header expressions evaluate as
empty when used in request headers.

Risk Level: low, docs only
Testing: n/a
Docs Changes: updated
Release Notes: n/a

Signed-off-by: Stephan Zuercher <[email protected]>
  • Loading branch information
zuercher authored and htuch committed Sep 4, 2019
1 parent 32590dc commit aeb5d69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/root/configuration/http/http_conn_man/headers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,13 @@ Supported variable names are:
namespace and key(s) are specified as a JSON array of strings. Finally, percent symbols in the
parameters **do not** need to be escaped by doubling them.

Upstream metadata cannot be added to request headers as the upstream host has not been selected
when custom request headers are generated.

%UPSTREAM_REMOTE_ADDRESS%
Remote address of the upstream host. If the address is an IP address it includes both address
and port.
and port. The upstream remote address cannot be added to request headers as the upstream host
has not been selected when custom request headers are generated.

%PER_REQUEST_STATE(reverse.dns.data.name)%
Populates the header with values set on the stream info filterState() object. To be
Expand Down

0 comments on commit aeb5d69

Please sign in to comment.