Skip to content

Commit

Permalink
Remove prefix from websocket handler name
Browse files Browse the repository at this point in the history
Remove the websocket prefix "websocket_handler_" introduced in
761eef7. Makes url_for() unable to find the corresponding ws route.
  • Loading branch information
laggardkernel committed Feb 5, 2021
1 parent fe3fdc5 commit 72723f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sanic/app.py
Expand Up @@ -494,9 +494,7 @@ def response(handler):
websocket_handler = partial(
self._websocket_handler, handler, subprotocols=subprotocols
)
websocket_handler.__name__ = (
"websocket_handler_" + handler.__name__
)
websocket_handler.__name__ = handler.__name__
routes.extend(
self.router.add(
uri=uri,
Expand Down

0 comments on commit 72723f8

Please sign in to comment.