This is an automated email from the ASF dual-hosted git repository.

AlinsRan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new f17bcb2b35 fix(hmac-auth): pass ctx when hiding the Authorization 
header (#13820)
f17bcb2b35 is described below

commit f17bcb2b351125eb470728702e9a2009d27e29cd
Author: Arjen10 <[email protected]>
AuthorDate: Fri Aug 14 17:52:18 2026 +0800

    fix(hmac-auth): pass ctx when hiding the Authorization header (#13820)
---
 apisix/plugins/hmac-auth.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apisix/plugins/hmac-auth.lua b/apisix/plugins/hmac-auth.lua
index 6bef4d88fc..52e2e93198 100644
--- a/apisix/plugins/hmac-auth.lua
+++ b/apisix/plugins/hmac-auth.lua
@@ -373,7 +373,7 @@ function _M.rewrite(conf, ctx)
     end
 
     if conf.hide_credentials then
-        core.request.set_header("Authorization", nil)
+        core.request.set_header(ctx, "Authorization", nil)
     end
 
     consumer.attach_consumer(ctx, cur_consumer, consumers_conf)

Reply via email to