Skip to content

Allow default http client connection to read simple streamed responses#89

Merged
asfgit merged 1 commit intoapache:masterfrom
dmap:bugfix/HTTPCORE-559
Oct 11, 2018
Merged

Allow default http client connection to read simple streamed responses#89
asfgit merged 1 commit intoapache:masterfrom
dmap:bugfix/HTTPCORE-559

Conversation

@dmap
Copy link
Contributor

@dmap dmap commented Oct 11, 2018

As per spec these responses are terminated by the end of stream.

Issue: https://issues.apache.org/jira/browse/HTTPCORE-559

Note: this PR breaks one existing unit test - namely {{testReadResponseNoEntity}} from {{TestDefaultBHttpClientConnection}}. The test is trivial to fix, but I'm not sure what you want the desired behaviour to be when an 'empty' response is returned. Previously the result was a null entity, but with my change the result is now an empty entity, an entity with no content. I think this is fine, but you may not.

As per spec these responses are terminated by the end of stream.

Issue: HTTPCORE-559
@asfgit asfgit merged commit 9a286c9 into apache:master Oct 11, 2018
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