Skip to content
Myr

Fixed.

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

authored by Alexander Nelzin · committed by Alexander Nelzin · parent 34f6088 · 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
470 unmodified lines
471 elif body is not None:472 l = super_len(body)473 if l:474 self.headers['Content-Length'] = builtin_str(l)475 elif self.method not in ('GET', 'HEAD'):475 elif (self.method not in ('GET', 'HEAD')) and (self.headers.get('Content-Length') is None):476 self.headers['Content-Length'] = '0'477478 def prepare_auth(self, auth, url=''):479 """Prepares the given HTTP auth data."""
358 unmodified lines