[
https://issues.apache.org/jira/browse/TS-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15552361#comment-15552361
]
Leif Hedstrom commented on TS-4940:
-----------------------------------
[~jsime] I think this is a documentation issue, certain strings requires quotes
when used as an operand like this. The solution in this case is to change this
to
{code}
cond %{SEND_REQUEST_HDR_HOOK}
rm-header X-Box-Original-Ip
add-header X-Box-Original-Ip "%<chi>"
{code}
> header_rewrite in 6.2.0 doesn't expand variables properly
> ---------------------------------------------------------
>
> Key: TS-4940
> URL: https://issues.apache.org/jira/browse/TS-4940
> Project: Traffic Server
> Issue Type: Bug
> Components: Plugins
> Reporter: Phillip Moore
> Assignee: Jon Sime
> Fix For: Docs
>
>
> We have a header_rewrite.config configured to add some headers for original
> IP address of requestor.
> {code}
> cond %{SEND_REQUEST_HDR_HOOK}
> rm-header X-Box-Original-Ip
> add-header X-Box-Original-Ip %<chi>
> {code}
> In 5.1.2 this worked fine. With 6.2.0 the expansion is not happening properly
> and for the header we get a literal %.
> 6.2.0: HTTP_X_BOX_ORIGINAL_IP=%
> 5.1.2: HTTP_X_BOX_ORIGINAL_IP=10.3.18.50
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)