You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2024/02/06 21:19:00 UTC
(trafficserver) branch 9.2.x updated: Allows the set-body to run as a pseudo remap hook (#11030)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 37744d3edd Allows the set-body to run as a pseudo remap hook (#11030)
37744d3edd is described below
commit 37744d3eddab746aed9e9f733ac5436959507672
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Thu Feb 1 14:09:35 2024 -0700
Allows the set-body to run as a pseudo remap hook (#11030)
It also eliminates the hook support for read-response, which is
too late for this implementaiton of the set-body.
(cherry picked from commit 33b795f107b13471a6f4dc62da3669d3acf47ca2)
---
plugins/header_rewrite/operators.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/header_rewrite/operators.cc b/plugins/header_rewrite/operators.cc
index 85c8fb44bb..f871dba2e0 100644
--- a/plugins/header_rewrite/operators.cc
+++ b/plugins/header_rewrite/operators.cc
@@ -691,7 +691,7 @@ OperatorSetBody::initialize(Parser &p)
void
OperatorSetBody::initialize_hooks()
{
- add_allowed_hook(TS_HTTP_READ_RESPONSE_HDR_HOOK);
+ add_allowed_hook(TS_REMAP_PSEUDO_HOOK);
add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
}