Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in 'ws4y.websocket' #89

Merged
merged 1 commit into from
Apr 24, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ws4py/server/geventserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def run_application(self):
self.socket = None
self.rfile.close()

ws = self.environ.pop('ws4y.websocket')
ws = self.environ.pop('ws4py.websocket')
if ws:
self.server.link_websocket_to_server(ws)
else:
Expand Down
2 changes: 1 addition & 1 deletion ws4py/server/wsgirefserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def finish_response(self):
ws = None
if self.environ:
self.environ.pop('ws4py.socket', None)
ws = self.environ.pop('ws4y.websocket', None)
ws = self.environ.pop('ws4py.websocket', None)

try:
SimpleHandler.finish_response(self)
Expand Down
6 changes: 3 additions & 3 deletions ws4py/server/wsgiutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, protocols=None, extensions=None, handler_cls=WebSocket):

If the upgrade validates, the `handler_cls` class
is instanciated and stored inside the WSGI `environ`
under the `'ws4y.websocket'` key to make it
under the `'ws4py.websocket'` key to make it
available to the WSGI handler.
"""
self.protocols = protocols
Expand All @@ -83,11 +83,11 @@ def make_websocket(self, sock, protocols, extensions, environ):
the `environ` and `sock`.

Stores then the instance in the `environ` dict
under the `'ws4y.websocket'` key.
under the `'ws4py.websocket'` key.
"""
websocket = self.handler_cls(sock, protocols, extensions,
environ.copy())
environ['ws4y.websocket'] = websocket
environ['ws4py.websocket'] = websocket
return websocket

def __call__(self, environ, start_response):
Expand Down