fix for cookie header capitalization bug
This commit is contained in:
parent
fc19f2ea34
commit
d86ac5e3e0
|
@ -114,6 +114,8 @@ class Request(dict):
|
|||
@property
|
||||
def cookies(self):
|
||||
if self._cookies is None:
|
||||
if 'cookie' in self.headers: #HTTP2 cookie header
|
||||
self.headers['Cookie'] = self.headers.pop('cookie')
|
||||
if 'Cookie' in self.headers:
|
||||
cookies = SimpleCookie()
|
||||
cookies.load(self.headers['Cookie'])
|
||||
|
|
Loading…
Reference in New Issue
Block a user