Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

fix #131: Concurrency issue with CheckRedirect of DefaultClient #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vvelikodny
Copy link

@vvelikodny vvelikodny commented Sep 9, 2016

I think Request should wrap http.Client. We don't need global DefaultClient at all. User should pass http.Client directly to Request when create it or new http client will be created each request.

@marcosnils
Copy link
Member

@vvelikodny thx for contributing. Have you run the tests before sending the PR?

@vvelikodny
Copy link
Author

@marcosnils didn't sorry, I see issues, going to fix it.

@vvelikodny
Copy link
Author

vvelikodny commented Sep 9, 2016

@marcosnils all tests passed now, let me know what do you think, thanks!

@marcosnils
Copy link
Member

@vvelikodny thx for the update. Is there a chan e you can add a new test for the bug you're fixing? This way we prevent future issues with this functionality

@vvelikodny
Copy link
Author

@marcosnils ok, cure, I will add new test to cover it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants