8000
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 69c94af commit 17a3c8cCopy full SHA for 17a3c8c
src/websockets/server.py
@@ -340,8 +340,8 @@ def process_origin(
340
# per https://tools.ietf.org/html/rfc6454#section-7.3.
341
try:
342
origin = cast(Origin, headers.get("Origin"))
343
- except MultipleValuesError:
344
- raise InvalidHeader("Origin", "more than one Origin header found")
+ except MultipleValuesError as e:
+ raise InvalidHeader("Origin", "more than one Origin header found") from e
345
if origins is not None:
346
if origin not in origins:
347
raise InvalidOrigin(origin)
0 commit comments