Skip to content
Myr

remove strict mode

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 400046f · Browse files · 1 file+9 added−11 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+9 added−11 removed

  • other:+9 added−11 removed

1 file+9 added−11 removed

modified:requests/models.py+9 added-11 removed
269 unmodified lines
270 files = None271 else:272 method = self.method273274 # Do what the browsers do if strict_mode is off...275 if (not self.config.get('strict_mode')):274 # Do what the browsers do, despite standards...275 if r.status_code in (codes.moved, codes.found) and self.method == 'POST':276 method = 'GET'277 data = None278 files = None279277 if r.status_code in (codes.moved, codes.found) and self.method == 'POST':278 method = 'GET'279 data = None280 files = None280 if (r.status_code == 303) and self.method != 'HEAD':281 method = 'GET'282 data = None283 files = None284282 if (r.status_code == 303) and self.method != 'HEAD':283 method = 'GET'284 data = None285 files = None286285 # Remove the cookie headers that were sent.286 headers = self.headers287 try:288 del headers['Cookie']
628 unmodified lines