Skip to content

Commit

Permalink
Add support for Upgrade: Derp custom protocol (#1463)
Browse files Browse the repository at this point in the history
Add support for `Upgrade: Derp` custom protocol used by @coder
  • Loading branch information
abhinavsingh authored Aug 23, 2024
1 parent 447b68e commit 05ac288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/http/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ def is_connection_upgrade(self) -> bool:

@property
def is_websocket_upgrade(self) -> bool:
return (
self.is_connection_upgrade
and self.header(b'upgrade').lower() == b'websocket'
return self.is_connection_upgrade and self.header(b'upgrade').lower() in (
b'websocket',
b'derp',
)

@property
Expand Down

0 comments on commit 05ac288

Please sign in to comment.