Merge pull request #1771 from tomchristie/fix-1718

Always uppercase X-Http-Method-Override methods.
This commit is contained in:
Tom Christie 2014-08-18 15:46:07 +01:00
commit d34dfc3fac

View File

@ -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):
"""