From d86ac5e3e03f3a1469e9f4e1bce9af1919fbaa54 Mon Sep 17 00:00:00 2001 From: Jack Fischer Date: Sat, 26 Nov 2016 11:20:29 -0500 Subject: [PATCH] fix for cookie header capitalization bug --- sanic/request.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanic/request.py b/sanic/request.py index 8023fd9c..676eaa51 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -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'])