You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Revolyssup (via GitHub)" <gi...@apache.org> on 2023/06/02 04:48:20 UTC

[GitHub] [apisix] Revolyssup commented on issue #9585: bug: ngx.exit() doesn't support header_filter_by_lua

Revolyssup commented on issue #9585:
URL: https://github.com/apache/apisix/issues/9585#issuecomment-1573138757

   Although according to the documentation it shouldn't happen so I am looking into it. Meanwhile you can use ngx.ctx to signal completion. Set ngx.ctx.request_complete = true in header_filter after exiting. Then check if ngx.ctx.done in body_filter before moving forward. Though it feels like a hack and there must be a better solution


-- 
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: notifications-unsubscribe@apisix.apache.org

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