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
Did I understand it correctly that due to module initialisation order, headers-more is executed before the standard headers filter where X-Slytherin is set? Consequently, headers-more will not see X-Slytherin when setting X-Magic.
In other words, the HTTP 'sent' variables as implemented in ngx_http_variable_unknown_header are one of the products of header filters downstream of the headers-more filter that do not yet exist at the time of expanding variables in headers-more.
If I got this right, am I also right that such scenario is an example of undefined behaviour @agentzh referred to in his OpenResty notes when he wrote the below?
Out of sheer curiosity, we shall ask immediately that what would be execution ordering in between more_set_input_headers and rewrite_by_lua, since they both ride on rewrite tail? The answer is : undefined. We must avoid a configuration which relies on their execution orders.
The text was updated successfully, but these errors were encountered:
I configured:
Did I understand it correctly that due to module initialisation order, headers-more is executed before the standard headers filter where X-Slytherin is set? Consequently, headers-more will not see X-Slytherin when setting X-Magic.
In other words, the HTTP 'sent' variables as implemented in
ngx_http_variable_unknown_header
are one of the products of header filters downstream of the headers-more filter that do not yet exist at the time of expanding variables in headers-more.If I got this right, am I also right that such scenario is an example of undefined behaviour @agentzh referred to in his OpenResty notes when he wrote the below?
The text was updated successfully, but these errors were encountered: