diff options
| author | Tom Christie | 2014-08-18 15:46:07 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-08-18 15:46:07 +0100 | 
| commit | d34dfc3fac779a38f67788e8dfd0a2e7ef09d080 (patch) | |
| tree | 137772fcae8cf48c43ca6b2e22bbcc2c94151575 | |
| parent | 8244c7cc33e8d8078529dd0a9a3bdc2ce3a817fc (diff) | |
| parent | 33af92e019fda70af7a4138972ee9780a9cc967a (diff) | |
| download | django-rest-framework-d34dfc3fac779a38f67788e8dfd0a2e7ef09d080.tar.bz2 | |
Merge pull request #1771 from tomchristie/fix-1718
Always uppercase X-Http-Method-Override methods.
| -rw-r--r-- | rest_framework/request.py | 4 | 
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):          """ | 
