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

Added copying of headers to the fronted request closes #4246 #4247

Merged
merged 5 commits into from May 10, 2016

Conversation

myleshorton
Copy link
Contributor

No description provided.

@myleshorton
Copy link
Contributor Author

OK @oxtoacart I think this should be all set. I went ahead and refactored things a little bit to make testing easier.

@myleshorton
Copy link
Contributor Author

Hey one sec @oxtoacart just realized the test needs a little work..

@oxtoacart
Copy link
Contributor

@myleshorton Ok, just let me know when you want me to take a look.

// Make a copy of the original requeest headers to include in the fronted
// request. This will ensure that things like the caching headers are
// included in both requests.
headersCopy := make(http.Header, len(req.Header))
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit, but there's no point in copying if the frontedURL check fails.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 52.071% when pulling 1ff6bed on issue-4246 into 6c18b63 on release-2.2.0.

@oxtoacart oxtoacart merged commit 06baf8e into release-2.2.0 May 10, 2016
@oxtoacart oxtoacart deleted the issue-4246 branch May 10, 2016 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants