mirror of
https://github.com/kennethreitz/flask-sockets.git
synced 2026-06-05 23:10:16 +00:00
Fallback to Flask routing when not a ws request #11
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ class SocketMiddleware(object):
|
||||
environment = environ['wsgi.websocket']
|
||||
handler(environment, **values)
|
||||
return []
|
||||
except NotFound:
|
||||
except (NotFound, KeyError):
|
||||
return self.app(environ, start_response)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user