fix for cookie header capitalization bug

This commit is contained in:
Jack Fischer 2016-11-26 11:20:29 -05:00
parent fc19f2ea34
commit d86ac5e3e0

View File

@ -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'])