-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Copy the headers from the last request on redirect #24
Conversation
@gummiboll great, useful addition. |
I do get what you mean but as I was thinking about how I would best implement this I started thinking about it; with Come to think about it, this PR might override |
@gummiboll this redirect handler function could be a private member of the |
Good idea! How about this? |
@gummiboll awesome! Could you please exclude |
Yes, here you go. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you.
Apparently headers does not survive a redirect in net/http (golang/go#4800) so here's a fix for that. Probably not the most elegant way of doing it though