headers-more-nginx-module icon indicating copy to clipboard operation
headers-more-nginx-module copied to clipboard

does more_headers_set work with 301 status code

Open alex95120 opened this issue 10 years ago • 2 comments

I tried more_set_headers "X-foo: foo";

it seems working for status 200 HTTP response. If the status is 301, the header X-foo is not added.

alex95120 avatar Sep 15 '15 21:09 alex95120

It surprised me that it works that more_set_headers -s 301 "X-foo: foo";

I intend it works for all status code. Anywhere can I change to make it work?

alex95120 avatar Sep 15 '15 21:09 alex95120

@alex95120 It should work regardless of the status code withou the -s option. Will you provide a standalone and minimal test case that I can run and reproduce the issue easily on my side? Thanks!

agentzh avatar Sep 16 '15 03:09 agentzh