From: Ian Cordasco Date: Thu, 28 Mar 2013 03:30:00 +0000 (-0400) Subject: Finally resolve #1084 X-Git-Tag: v1.2.0~2^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88177ec33fa0846aea0ecb121ffbb041c5f09cdc;p=services%2Fpython-requests.git Finally resolve #1084 Send body on redirect when POSTing or PUTing. --- diff --git a/requests/sessions.py b/requests/sessions.py index ab56464..c306a8d 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -134,7 +134,8 @@ class SessionRedirectMixin(object): prepared_request.method = method - if resp.status_code is not codes.temporary: + # https://github.com/kennethreitz/requests/issues/1084 + if resp.status_code not in (codes.temporary, codes.resume): if 'Content-Length' in prepared_request.headers: del prepared_request.headers['Content-Length']