[ 
https://issues.apache.org/jira/browse/TS-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15596558#comment-15596558
 ] 

Leif Hedstrom commented on TS-4940:
-----------------------------------

I looked at this some more, and it wouldn't be trivial to make it handle the 
old variation (without the quotes). @bcall wdyt? The issue comes from the 
choice of using %<  where < has special meaning in the syntax :-/. So we'd have 
to keep track of using being inside %<, and perhaps also %{.

> 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)

Reply via email to