Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

Close response bodies after successfully setting statuses - #69

Closed
thna123459 wants to merge 1 commit into
spotify:masterfrom
thna123459:master
Closed

thna123459 wants to merge 1 commit into
spotify:masterfrom
thna123459:master

Conversation

@thna123459

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown

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
Copy Markdown
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

bguedel commented Aug 11, 2021

Copy link
Copy Markdown

will this fix #65

@thna123459

Copy link
Copy Markdown
Contributor Author

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

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