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

Fix #346: Keep headers in server block to fix HSTS #424

Merged
merged 2 commits into from
Nov 29, 2015
Merged

Conversation

swalkinshaw
Copy link
Member

Nginx only inherits headers if there are NO add_header declarations in
the child (location block in this case).

From Nginx docs:

There could be several add_header directives. These directives are
inherited from the previous level if and only if there are no add_header
directives defined on the current level.

See 7f04021 for the fix only.

Nginx only inherits headers if there are NO `add_header` declarations in
the child (`location` block in this case).

From Nginx docs:

There could be several add_header directives. These directives are
inherited from the previous level if and only if there are no add_header
directives defined on the current level.
swalkinshaw added a commit that referenced this pull request Nov 29, 2015
Fix #346: Keep headers in server block to fix HSTS
@swalkinshaw swalkinshaw merged commit aa9976f into master Nov 29, 2015
@swalkinshaw swalkinshaw deleted the hsts-fix branch November 29, 2015 01:56
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

Successfully merging this pull request may close these issues.

1 participant