Skip to content

Commit 33b795f

Browse files
authored
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.
1 parent e935f3e commit 33b795f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/header_rewrite/operators.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ OperatorSetBody::initialize(Parser &p)
697697
void
698698
OperatorSetBody::initialize_hooks()
699699
{
700-
add_allowed_hook(TS_HTTP_READ_RESPONSE_HDR_HOOK);
700+
add_allowed_hook(TS_REMAP_PSEUDO_HOOK);
701701
add_allowed_hook(TS_HTTP_SEND_RESPONSE_HDR_HOOK);
702702
}
703703

0 commit comments

Comments
 (0)