SocketMiddleware.__call__: initialize `environment
`
This commit is contained in:
parent
321bad35d9
commit
122744178f
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class SocketMiddleware(object):
|
|||
def __call__(self, environ, start_response):
|
||||
path = environ['PATH_INFO']
|
||||
|
||||
environment = None
|
||||
|
||||
if path in self.ws.url_map:
|
||||
handler = self.ws.url_map[path]
|
||||
environment = environ.get('wsgi.websocket')
|
||||
|
|
Loading…
Add table
Reference in a new issue