Skip to content

Allow, but ignore, trailing whitespace on X-Forwarded headers#13

Open
djzort wants to merge 1 commit into
lopnor:masterfrom
djzort:master
Open

Allow, but ignore, trailing whitespace on X-Forwarded headers#13
djzort wants to merge 1 commit into
lopnor:masterfrom
djzort:master

Conversation

@djzort

@djzort djzort commented Nov 21, 2017

Copy link
Copy Markdown

Our vendor load balancer is injecting X-Forwarded headers but is appending spaces to the ends in some cases.

This simple change will allow the regex to match but ignore the whitespace. It will be completely harmless is in more sane environments.

@djzort

djzort commented Nov 23, 2017

Copy link
Copy Markdown
Author

This is more or less a duplicate of #9

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