headers-more-nginx-module
headers-more-nginx-module copied to clipboard
error_page disables more_set_headers
compare
more_set_headers "name1: value1";
location =/one {
more_set_headers "name2: value2";
return 303 OK;
}
and
location @error {
return 200 OK;
}
more_set_headers "name1: value1";
location =/two {
more_set_headers "name2: value2";
error_page 303 = @error;
return 303 OK;
}
if request one location, it adds two headers name1 with value1 and name2 with value2 but if request two location, it adds only one header name1 with value1