Update headers to use CIMultiDict instead of dict
This commit is contained in:
parent
879b9a4a15
commit
635921adc7
|
@ -3,7 +3,7 @@ from functools import partial
|
||||||
from inspect import isawaitable
|
from inspect import isawaitable
|
||||||
from signal import SIGINT, SIGTERM
|
from signal import SIGINT, SIGTERM
|
||||||
from time import time
|
from time import time
|
||||||
|
from aiohttp import CIMultiDict
|
||||||
import httptools
|
import httptools
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -120,7 +120,7 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
|
|
||||||
self.request = Request(
|
self.request = Request(
|
||||||
url_bytes=self.url,
|
url_bytes=self.url,
|
||||||
headers=dict(self.headers),
|
headers=CIMultiDict(self.headers),
|
||||||
version=self.parser.get_http_version(),
|
version=self.parser.get_http_version(),
|
||||||
method=self.parser.get_method().decode()
|
method=self.parser.get_method().decode()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user