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 response bodies after successfully setting statuses #69

Closed
wants to merge 1 commit into from

Conversation

thna123459
Copy link
Contributor

No description provided.

Comment on lines +224 to +228
.thenAccept(response -> {
if (response.body() != null) {
response.body().close();
}
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about chaging IGNORE_RESPONSE_CONSUMER from (ignore) -> {} to what you have?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea, I was a little hesitant to make such a change because I only tested it with statuses, but let's be bold:
#70

@bguedel
Copy link

bguedel commented Aug 11, 2021

will this fix #65

@thna123459
Copy link
Contributor Author

This should at least partially fix #65, but #70 should address more cases.

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.

2 participants