Skip to content
Myr

Revert "If Content-Length is already set.."[1]

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

This reverts commit 544d08d0f61c35358cf13b4a6b677e4e51dbbe7e. [1]"If Content-Length is already set, don't over ride it"

authored by Ian Cordasco · committed by Ian Cordasco · parent 603fd42 · Browse files · 1 file+0 added−2 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+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:requests/models.py-2 removed
384 unmodified lines
385386 self.body = body387388 def prepare_content_length(self, body):389 if self.headers.get('Content-Length'):390 return389 if hasattr(body, 'seek') and hasattr(body, 'tell'):390 body.seek(0, 2)391 self.headers['Content-Length'] = str(body.tell())392 body.seek(0, 0)
273 unmodified lines