Skip to content
Myr

Finally resolve #1084

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Send body on redirect when POSTing or PUTing.

authored by Ian Cordasco · committed by Ian Cordasco · parent 1d5c4f3 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/sessions.py+2 added-1 removed
132 unmodified lines
133 method = 'GET'134135 prepared_request.method = method136137 if resp.status_code is not codes.temporary:137 # https://github.com/kennethreitz/requests/issues/1084138 if resp.status_code not in (codes.temporary, codes.resume):139 if 'Content-Length' in prepared_request.headers:140 del prepared_request.headers['Content-Length']141142 prepared_request.body = None
337 unmodified lines