[
https://issues.apache.org/jira/browse/TS-3966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032031#comment-15032031
]
ASF subversion and git services commented on TS-3966:
-----------------------------------------------------
Commit a090b1a0805887387615e5936f4410f4a9955e4a in trafficserver's branch
refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=a090b1a ]
TS-3966 header_rewrite now allows pre-origin requests to be denied
This generalizes the concept of set-status, such that it also works in
remap read-request hooks. I.e. prior to having a status code from cache
/ origin. This avoids going to origin before we can reject a request.
This closes ##346.
> header_rewrite does not allow to deny requests in remap / read-request-her
> hook
> -------------------------------------------------------------------------------
>
> Key: TS-3966
> URL: https://issues.apache.org/jira/browse/TS-3966
> Project: Traffic Server
> Issue Type: Improvement
> Components: Plugins
> Reporter: Leif Hedstrom
> Assignee: Leif Hedstrom
> Fix For: 6.1.0
>
>
> It'd be nice if I could use e.g.
> {code}
> set-status 403
> {code}
> in a a header_rewrite rule for remap rules, or read-request-header hooks.
> But, this does not work today, you have to let it slip through to origin, and
> then modify the response status code in a send-response-header hook.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)