nic-6443 commented on code in PR #13915:
URL: https://github.com/apache/apisix/pull/13915#discussion_r3930419687
##########
apisix/init.lua:
##########
@@ -1024,13 +1024,13 @@ function _M.http_header_filter_phase()
set_resp_upstream_status(up_status)
end
+ local api_ctx = ngx_ctx.api_ctx
if ngx.status == 101 then
- ngx_var.request_type = "websocket"
+ api_ctx.var.request_type = "websocket"
end
common_phase("header_filter")
- local api_ctx = ngx.ctx.api_ctx
if not api_ctx then
Review Comment:
This is also redundant
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]