Skip to content
Myr

Merge pull request #2896 from BraulioVM/master

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

[WIP] Set 'Transfer-Encoding: chunked' if data is a file with length 0

authored by Ian Cordasco · committed by Ian Cordasco · parents dfa97ad, 4c82dba · Browse files · 1 file+1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
432 unmodified lines
433434 if files:435 raise NotImplementedError('Streamed bodies and files are mutually exclusive.')436437 if length is not None:437 if length:438 self.headers['Content-Length'] = builtin_str(length)439 else:440 self.headers['Transfer-Encoding'] = 'chunked'441 else:
407 unmodified lines