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

Does clearing a header field delete the field or just its value

Open JoeUX opened this issue 9 years ago • 2 comments

Hi all – I had a quick question about what "clearing" means. Will it delete the header field from the overall HTTP response header, or just delete its value?

The way it's presented here:

more_set_headers -s 404 -t 'text/plain' "Foo: " "Baz: ";

makes it look like it would keep the header field with a blank space for its value.

JoeUX avatar Jun 10 '16 17:06 JoeUX

Clearing means deleting the whole header entry, including names. It's easier to try it out yourself BTW.

agentzh avatar Jun 10 '16 18:06 agentzh

Thanks. This is a great module.

JoeUX avatar Jun 20 '16 23:06 JoeUX