You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Thomas Jackson (JIRA)" <ji...@apache.org> on 2015/08/28 23:28:46 UTC
[jira] [Created] (TS-3874) Header-rewrite doesn't support multiple
header values in conditionals
Thomas Jackson created TS-3874:
----------------------------------
Summary: Header-rewrite doesn't support multiple header values in conditionals
Key: TS-3874
URL: https://issues.apache.org/jira/browse/TS-3874
Project: Traffic Server
Issue Type: Bug
Reporter: Thomas Jackson
If I have the following rule:
{code}
cond %{HEADER:Cache-Control} /private/ [NOT]
add-header Foo NotPrivate
{code}
I expect the header "foo" to be added when the cache control header does not contain private. This works, as long as there is a single cache-control header. In the event of multiple headers it simply checks against the first one-- instead of all of them.
To follow the RFC I have a patch (PR open on github) which consolidates the headers into a single comma-separated string to do the matching against.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)