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

Fix #33 - Propagate non-default on_body receivers through redirects #34

Merged
merged 1 commit into from
Oct 31, 2015

Conversation

sqrrrl
Copy link
Contributor

@sqrrrl sqrrrl commented Oct 7, 2015

Copies any on_body receivers through automatic redirects. Generally we only want the last body received. In the default case, the BodyReceiver will just get reset each time which is fine. For custom receivers, redirect response bodies can be ignored by filtering on status (e.g. only 200, 201..)

Needs #28 to me merged to work outside tests.

end

assert_equal "ok", body.join
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@sqrrrl sqrrrl mentioned this pull request Oct 31, 2015
kkirsche added a commit that referenced this pull request Oct 31, 2015
Fix #33 - Propagate non-default on_body receivers through redirects
@kkirsche kkirsche merged commit 0fc84b3 into lostisland:master Oct 31, 2015
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.

3 participants