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

[THREESCALE-630] passthrough invalid HTTP headers #612

Merged
merged 2 commits into from
Feb 20, 2018
Merged

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Feb 20, 2018

APIcast should not drop any headers and just pass them to upstream. Fixes https://issues.jboss.org/browse/THREESCALE-630.

* no need to print `\r` or the body when there isn't any
@@ -41,6 +41,9 @@ http {
lua_package_path "{{ lua_path | default: package.path }}";
lua_package_cpath "{{ lua_cpath | default: package.cpath }}";

underscores_in_headers on;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed if ignore_invalid_headers is set to off?
From the docs:

 When the use of underscores is disabled, request header fields whose names contain underscores are marked as invalid and become subject to the ignore_invalid_headers directive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Lets try.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Fixed.

@mikz mikz merged commit 0b47250 into master Feb 20, 2018
@mikz mikz deleted the ignore-headers branch February 20, 2018 16:36
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.

2 participants