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

Push down headers from client #1453

Merged
merged 5 commits into from
Feb 18, 2017
Merged

Push down headers from client #1453

merged 5 commits into from
Feb 18, 2017

Conversation

wendigo
Copy link

@wendigo wendigo commented Feb 18, 2017

Addresses comments from #1215

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this @wendigo !

}

if flusher, ok := w.(http.Flusher); ok {
flusher.Flush()
Copy link
Member

Choose a reason for hiding this comment

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

Were there cases where you found flushing useful?

Copy link
Author

Choose a reason for hiding this comment

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

I can remove that. It seems it's not needed.

filter := http.Header{}

for _, header := range proxiedHeaders {
if val, ok := headers[http.CanonicalHeaderKey(header)]; ok {
Copy link
Member

Choose a reason for hiding this comment

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

It looks like the header names are already in the canonical format, as defined below.

Copy link
Author

Choose a reason for hiding this comment

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

You're right :) Removing

@mholt mholt merged commit ce3580b into master Feb 18, 2017
@mholt mholt deleted the push_down_headers branch August 9, 2017 04:19
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