We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3553ae commit 8b0bac4Copy full SHA for 8b0bac4
src/wsproto/handshake.py
@@ -286,7 +286,9 @@ def _accept(self, event: AcceptConnection) -> bytes:
286
headers.append((b"Sec-WebSocket-Extensions", accepts))
287
288
response = h11.InformationalResponse(
289
- status_code=101, headers=headers + event.extra_headers
+ status_code=101,
290
+ headers=headers + event.extra_headers,
291
+ reason=b"Switching Protocols",
292
)
293
self._connection = Connection(
294
ConnectionType.CLIENT if self.client else ConnectionType.SERVER,
0 commit comments