remove strict mode
authorKenneth Reitz <me@kennethreitz.com>
Tue, 27 Nov 2012 20:41:12 +0000 (12:41 -0800)
committerKenneth Reitz <me@kennethreitz.com>
Tue, 27 Nov 2012 20:41:12 +0000 (12:41 -0800)
requests/models.py

index c184c1cdf0381983696f66863c117b6da7ee5921..a97c016d164e84d4b04a7b189ff1187f262db2b1 100644 (file)
@@ -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