aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/request.py
diff options
context:
space:
mode:
authorTom Christie2014-08-18 15:14:30 +0100
committerTom Christie2014-08-18 15:14:30 +0100
commit33af92e019fda70af7a4138972ee9780a9cc967a (patch)
tree137772fcae8cf48c43ca6b2e22bbcc2c94151575 /rest_framework/request.py
parent8244c7cc33e8d8078529dd0a9a3bdc2ce3a817fc (diff)
downloaddjango-rest-framework-33af92e019fda70af7a4138972ee9780a9cc967a.tar.bz2
Always uppercase X-Http-Method-Override methods. Closes #1718.
Diffstat (limited to 'rest_framework/request.py')
-rw-r--r--rest_framework/request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index 40467c03..dc696e36 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -280,8 +280,8 @@ class Request(object):
self._method = self._request.method
# Allow X-HTTP-METHOD-OVERRIDE header
- self._method = self.META.get('HTTP_X_HTTP_METHOD_OVERRIDE',
- self._method)
+ if 'HTTP_X_HTTP_METHOD_OVERRIDE' in self.META:
+ self._method = self.META['HTTP_X_HTTP_METHOD_OVERRIDE'].upper()
def _load_stream(self):
"""