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

FlatResponseOperator does not emit any item if there is no content. #230

Closed
NiteshKant opened this issue Sep 7, 2014 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@NiteshKant
Copy link
Member

FlatResponseOperator must always emit a single item unless it is an error.

The current implementation passes on the onComplete() of content Observable to the subscriber even when there is no content. This causes the subscriber to not even get the HttpClientResponse back.

Instead, the operator must create a ResponseHolder with no content if there is no content in the response.

@NiteshKant
Copy link
Member Author

PR #227 fixes this issue and emits a single element (ResponseHolder) in all scenarios but for error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant