-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Python 2.6 POST callbacks get called twice #100
Comments
That's the result of bf39ab2 response called first in send_request/sendall(): and then in getresponse(): reverting that commit and removing call to dispatch in sendall fixes the issue. I don't really understand why call to dispatch is there in sendall() at all. |
Note: Per @panovodv comment above re: "reverting that commit and removing call to dispatch", the specific workaround that we've implemented locally in "core.py" is:
Note that "self._entry.request.body = body" is still necessary, after commenting out the "last_entry" logic. |
That seems to fix this issue, but I think it would create a regression in #42. |
I ran into this problem too, and basically took @DreadPirateShawn 's approach but with a twist. Instead of:
I did
This ensures that the FakeKey has all the data and not just the last part. |
Got it @DreadPirateShawn. Thanks. |
Thanks for your work @gabrielfalcao ! |
It looks like POST callbacks get called twice on python 2.6. I believe this is a result of a change in httplib between 2.6 and 2.7, but have not had the time to do a bisect yet.
results in
The text was updated successfully, but these errors were encountered: