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

Close all ignored response bodies #70

Merged

Conversation

thna123459
Copy link
Contributor

This fixes several warnings of this form (#65):
A connection to https://github.com/ was leaked. Did you forget to close a response body?

According to the okhttp documentation:
"Response bodies must be closed and may be consumed only once"
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/body/

This fixes several warnings of this form (spotify#65):
A connection to https://github.com/ was leaked. Did you forget to close a response body?

According to the okhttp documentation:
"Response bodies must be closed and may be consumed only once"
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-response/body/
@thna123459
Copy link
Contributor Author

I have only tested these changes with statuses; if you prefer this implementation, I will close #69

@henriquetruta henriquetruta merged commit 6e16ed9 into spotify:master Aug 12, 2021
@thna123459 thna123459 deleted the close-all-ignored-responses branch August 12, 2021 07:18
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.

None yet

2 participants