Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error_page disables more_set_headers #127

Open
RekGRpth opened this issue Feb 21, 2022 · 0 comments
Open

error_page disables more_set_headers #127

RekGRpth opened this issue Feb 21, 2022 · 0 comments

Comments

@RekGRpth
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant