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
I recently ran into an issue where I've been testing to make sure a specific set of headers are not sent on some responses but it turns out the negative header matching this test suite does is case sensitive. You can replicate it using this below test case:
I would expect this test to fail since x-powered-byis sent on the response, its just under X-Powered-By. Is there a flag I can enable to make sure these matches are case insensitive? Note that replacing ! x-powered-by with ! X-Powered-Bydoes cause the test to fail since it matches a header on the response.
I tried doing something like this:
--- response_headers_filter
lc
But it appears response_headers_filter isn't a thing, only response_body_filter which is understandable.
Any help would be fantastic, thanks in advance!
The text was updated successfully, but these errors were encountered:
jloh
added a commit
to jloh/test-nginx
that referenced
this issue
Oct 8, 2021
Hi all, thanks for the fantastic framework!
I recently ran into an issue where I've been testing to make sure a specific set of headers are not sent on some responses but it turns out the negative header matching this test suite does is case sensitive. You can replicate it using this below test case:
I would expect this test to fail since
x-powered-by
is sent on the response, its just underX-Powered-By
. Is there a flag I can enable to make sure these matches are case insensitive? Note that replacing! x-powered-by
with! X-Powered-By
does cause the test to fail since it matches a header on the response.I tried doing something like this:
But it appears
response_headers_filter
isn't a thing, onlyresponse_body_filter
which is understandable.Any help would be fantastic, thanks in advance!
The text was updated successfully, but these errors were encountered: