Blame SOURCES/0001-Up-wsproto-to-1.0.0.patch

6d87ca
From 737d25423ca6c865424598dd77c760b4c807b034 Mon Sep 17 00:00:00 2001
6d87ca
From: euri10 <benoit.barthelet@gmail.com>
6d87ca
Date: Sun, 13 Dec 2020 14:24:12 +0100
6d87ca
Subject: [PATCH] Up wsproto to 1.0.0
6d87ca
6d87ca
---
6d87ca
 requirements.txt                  | 2 +-
6d87ca
 tests/protocols/test_http.py      | 1 +
6d87ca
 tests/protocols/test_websocket.py | 6 +++++-
6d87ca
 3 files changed, 7 insertions(+), 2 deletions(-)
6d87ca
6d87ca
diff --git a/requirements.txt b/requirements.txt
6d87ca
index a739e05..bcc6b7d 100644
6d87ca
--- a/requirements.txt
6d87ca
+++ b/requirements.txt
6d87ca
@@ -1,7 +1,7 @@
6d87ca
 -e .[standard]
6d87ca
 
6d87ca
 # Explicit optionals
6d87ca
-wsproto==0.15.*
6d87ca
+wsproto==1.0.*
6d87ca
 
6d87ca
 # Packaging
6d87ca
 twine
6d87ca
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py
6d87ca
index f35a965..25110fc 100644
6d87ca
--- a/tests/protocols/test_http.py
6d87ca
+++ b/tests/protocols/test_http.py
6d87ca
@@ -67,6 +67,7 @@ UPGRADE_REQUEST = b"\r\n".join(
6d87ca
         b"Host: example.org",
6d87ca
         b"Connection: upgrade",
6d87ca
         b"Upgrade: websocket",
6d87ca
+        b"Sec-WebSocket-Version: 11",
6d87ca
         b"",
6d87ca
         b"",
6d87ca
     ]
6d87ca
diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py
6d87ca
index 24bc285..7c3fcc0 100644
6d87ca
--- a/tests/protocols/test_websocket.py
6d87ca
+++ b/tests/protocols/test_websocket.py
6d87ca
@@ -51,7 +51,11 @@ async def test_invalid_upgrade(protocol_cls):
6d87ca
         async with httpx.AsyncClient() as client:
6d87ca
             response = await client.get(
6d87ca
                 "http://127.0.0.1:8000",
6d87ca
-                headers={"upgrade": "websocket", "connection": "upgrade"},
6d87ca
+                headers={
6d87ca
+                    "upgrade": "websocket",
6d87ca
+                    "connection": "upgrade",
6d87ca
+                    "sec-webSocket-version": "11",
6d87ca
+                },
6d87ca
                 timeout=5,
6d87ca
             )
6d87ca
         if response.status_code == 426:
6d87ca
-- 
6d87ca
2.29.2
6d87ca