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

Delete self._form along with everything else on redirect #360

Merged
merged 1 commit into from
Nov 1, 2012

Conversation

jgautier
Copy link
Contributor

@jgautier jgautier commented Nov 1, 2012

When posting a file to a url that does a redirect I was getting this error from request:

You have already piped to this stream. Pipeing twice is likely to break the request.

The post callback would never get fired. When I deleted self._form it fixed the issue and I think it makes sense since its already deleting self.body etc.

mikeal added a commit that referenced this pull request Nov 1, 2012
Delete self._form along with everything else on redirect
@mikeal mikeal merged commit 9a3129c into request:master Nov 1, 2012
@mikeal
Copy link
Member

mikeal commented Nov 1, 2012

redirects on PUT/POST really suck. i think we can make these work better once read() streams are in.

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.

None yet

2 participants