Skip to content

Fix of IOException in apache httpclient integration#218

Merged
baev merged 1 commit into
allure-framework:masterfrom
proton72:allure-httpclient/closed-stream-fix
Jul 10, 2018
Merged

Fix of IOException in apache httpclient integration#218
baev merged 1 commit into
allure-framework:masterfrom
proton72:allure-httpclient/closed-stream-fix

Conversation

@proton72
Copy link
Copy Markdown
Contributor

IOException "Attempted read from closed stream" occures in case of getting access to HttpEntity, already processed with AllureHttpClientResponse interceptor. It's implies from the impossibility to consume the same ImputStream twice.

Current PR allows to dump content of http responce by providing auxilliary LoggableEntity with method getBody()

@baev baev merged commit 65a81cf into allure-framework:master Jul 10, 2018
@baev
Copy link
Copy Markdown
Member

baev commented Jul 10, 2018

@proton72 thanks!

PS sorry for delay

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