Commit 33af92e0 by Tom Christie

Always uppercase X-Http-Method-Override methods. Closes #1718.

parent 8244c7cc
...@@ -280,8 +280,8 @@ class Request(object): ...@@ -280,8 +280,8 @@ class Request(object):
self._method = self._request.method self._method = self._request.method
# Allow X-HTTP-METHOD-OVERRIDE header # Allow X-HTTP-METHOD-OVERRIDE header
self._method = self.META.get('HTTP_X_HTTP_METHOD_OVERRIDE', if 'HTTP_X_HTTP_METHOD_OVERRIDE' in self.META:
self._method) self._method = self.META['HTTP_X_HTTP_METHOD_OVERRIDE'].upper()
def _load_stream(self): def _load_stream(self):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment