aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/request.py
diff options
context:
space:
mode:
authorRoss McFarland2014-01-17 08:14:05 -0800
committerRoss McFarland2014-01-17 08:14:05 -0800
commit58d77c11c36623d2fd647a96e6871cbb93e17907 (patch)
tree6cf7793513891dc272908d4073d9585b13eb6fc9 /rest_framework/request.py
parentf92d8bd9721d788e3017c16fb285189c88112a46 (diff)
downloaddjango-rest-framework-58d77c11c36623d2fd647a96e6871cbb93e17907.tar.bz2
always obey X-HTTP-METHOD-OVERRIDE header
required to support old flash/flex clients that need to do everything as GET requests (apparently to allow for any error handlings)
Diffstat (limited to 'rest_framework/request.py')
-rw-r--r--rest_framework/request.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index 977d4d96..a570dcae 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -279,10 +279,9 @@ class Request(object):
if not _hasattr(self, '_method'):
self._method = self._request.method
- if self._method == 'POST':
- # Allow X-HTTP-METHOD-OVERRIDE header
- self._method = self.META.get('HTTP_X_HTTP_METHOD_OVERRIDE',
- self._method)
+ # Allow X-HTTP-METHOD-OVERRIDE header
+ self._method = self.META.get('HTTP_X_HTTP_METHOD_OVERRIDE',
+ self._method)
def _load_stream(self):
"""