You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to set headers via ngx.headers.HEADER in body_filter_by_lua*, I get the following error:
*311 attempt to set ngx.header.HEADER after sending out response headers while sending to client
I need to set headers based on what's in the response. Is there a way to delay the first byte of the response until I've set my headers? Kind of like lua_need_request_body.