diff --git a/CHANGES/6950.bugfix b/CHANGES/6950.bugfix new file mode 100644 index 00000000000..02fcdb6312c --- /dev/null +++ b/CHANGES/6950.bugfix @@ -0,0 +1,7 @@ +Increased the upper boundary of the :doc:`multidict:index` dependency +to allow for the version 6 -- by :user:`hugovk`. + +It used to be limited below version 7 in :doc:`aiohttp ` v3.8.1 but +was lowered in v3.8.2 via :pr:`6550` and never brought back, causing +problems with dependency pins when upgrading. :doc:`aiohttp ` v3.8.3 +fixes that by recovering the original boundary of ``< 7``. diff --git a/aiohttp/web_ws.py b/aiohttp/web_ws.py index c3ddff7173f..0d32a218b52 100644 --- a/aiohttp/web_ws.py +++ b/aiohttp/web_ws.py @@ -196,9 +196,9 @@ def _handshake( accept_val = base64.b64encode( hashlib.sha1(key.encode() + WS_KEY).digest() ).decode() - response_headers = CIMultiDict( # type: ignore[var-annotated] + response_headers = CIMultiDict( { - hdrs.UPGRADE: "websocket", # type: ignore[arg-type] + hdrs.UPGRADE: "websocket", hdrs.CONNECTION: "upgrade", hdrs.SEC_WEBSOCKET_ACCEPT: accept_val, } diff --git a/setup.cfg b/setup.cfg index 4a6e3175964..cd279a1fc90 100644 --- a/setup.cfg +++ b/setup.cfg @@ -50,7 +50,7 @@ include_package_data = True install_requires = attrs >= 17.3.0 charset-normalizer >=2.0, < 3.0 - multidict >=4.5, < 6.0 + multidict >=4.5, < 7.0 async_timeout >= 4.0.0a3, < 5.0 asynctest == 0.13.0; python_version<"3.8" yarl >= 1.0, < 2.0