From 95a03532c36f1afd38c395f7160c7f7086557b7b Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 27 Nov 2012 12:41:12 -0800 Subject: [PATCH] remove strict mode --- requests/models.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/requests/models.py b/requests/models.py index c184c1c..a97c016 100644 --- a/requests/models.py +++ b/requests/models.py @@ -271,18 +271,16 @@ class Request(object): else: method = self.method - # Do what the browsers do if strict_mode is off... - if (not self.config.get('strict_mode')): - - if r.status_code in (codes.moved, codes.found) and self.method == 'POST': - method = 'GET' - data = None - files = None - - if (r.status_code == 303) and self.method != 'HEAD': - method = 'GET' - data = None - files = None + # Do what the browsers do, despite standards... + if r.status_code in (codes.moved, codes.found) and self.method == 'POST': + method = 'GET' + data = None + files = None + + if (r.status_code == 303) and self.method != 'HEAD': + method = 'GET' + data = None + files = None # Remove the cookie headers that were sent. headers = self.headers -- 2.34.1