Skip to content

Commit

Permalink
Fix _SWITCH_UPGRADE without proposal error message
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan committed Mar 2, 2024
1 parent d6f470e commit 0c08b7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions h11/_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,7 @@ def process_event(
assert role is SERVER
if server_switch_event not in self.pending_switch_proposals:
raise LocalProtocolError(
"Received server {} event without a pending proposal".format(
server_switch_event
)
"Received server _SWITCH_UPGRADE event without a pending proposal"
)
_event_type = (event_type, server_switch_event)
if server_switch_event is None and _event_type is Response:
Expand Down

0 comments on commit 0c08b7c

Please sign in to comment.