Skip to content

Close response bodies after successfully setting statuses#69

Closed
thna123459 wants to merge 1 commit intospotify:masterfrom
thna123459:master
Closed

Close response bodies after successfully setting statuses#69
thna123459 wants to merge 1 commit intospotify:masterfrom
thna123459:master

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