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

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

Open
vvelikodny wants to merge 1 commit intofranela:masterfrom
vvelikodny:master
Open

fix #131: Concurrency issue with CheckRedirect of DefaultClient#132
vvelikodny wants to merge 1 commit intofranela:masterfrom
vvelikodny:master

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 vvelikodny force-pushed the master branch 3 times, most recently from 7027fe2 to ae7a5b8 Compare September 9, 2016 13:18
@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