jasmine-nahrain opened a new issue, #11397:
URL: https://github.com/apache/trafficserver/issues/11397
The status parsed through resources in the exec func of a header_rewrite
config can be different to the status seen in headers.
e.g.
```
Config #1
cond %{READ_RESPONSE_HDR_HOOK}
cond %{STATUS} = 400
set-status 404
Config #2
cond %{READ_RESPONSE_HDR_HOOK}
cond %{STATUS} = 404
set-status 410
```
If config 1 is fired first, config 2 never runs. Despite the fact that
config 1 changes the status, because all rules are evaluated once before
execution, the change of status is not recognised by config 2.
https://github.com/apache/trafficserver/blob/b46f5d061af455dc75956346da3308788381b30d/plugins/header_rewrite/header_rewrite.cc#L306-L319
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]