You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/06/25 01:51:19 UTC

[GitHub] [apisix] tokers commented on a change in pull request #4479: fix: Multiple request-id bug

tokers commented on a change in pull request #4479:
URL: https://github.com/apache/apisix/pull/4479#discussion_r658413789



##########
File path: apisix/plugins/request-id.lua
##########
@@ -49,7 +49,7 @@ function _M.rewrite(conf, ctx)
     end
 
     if conf.include_in_response then
-        ctx.x_request_id = uuid_val
+        ctx[conf.header_name] = uuid_val

Review comment:
       Agree +1




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org