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

Avoid setting DefaultRequestHeaders when request is in flight. #1604

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

peombwa
Copy link
Member

@peombwa peombwa commented Oct 31, 2022

This PR closes #1601 by ensuring we set DefaultRequestHeaders only once before the first call as it is not thread safe. The recommended pattern is to set it before first request with no manipulation later.

@peombwa peombwa merged commit a45920b into dev Nov 1, 2022
@peombwa peombwa deleted the po/DefaultRequestHeadersThreadSafety branch November 1, 2022 18:11
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.

Potential ThreadSafe issue
2 participants