From 635921adc71c8d27bc315f3b18ad927b6e14a5a5 Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Sat, 19 Nov 2016 16:03:09 -0800 Subject: [PATCH] Update headers to use CIMultiDict instead of dict --- sanic/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/server.py b/sanic/server.py index 0fd85440..0afeca23 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -3,7 +3,7 @@ from functools import partial from inspect import isawaitable from signal import SIGINT, SIGTERM from time import time - +from aiohttp import CIMultiDict import httptools try: @@ -120,7 +120,7 @@ class HttpProtocol(asyncio.Protocol): self.request = Request( url_bytes=self.url, - headers=dict(self.headers), + headers=CIMultiDict(self.headers), version=self.parser.get_http_version(), method=self.parser.get_method().decode() )