Skip to content

Commit

Permalink
fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawouach committed Dec 15, 2011
1 parent bed1e92 commit 8429855
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws4py/server/wsgi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __init__(self, handle, fallback_app=None, protocols=None, extensions=None,
def __call__(self, environ, start_response):
# Initial handshake validation
try:
if 'websocket' not in environ.get('upgrade.protocol', ''):
if 'websocket' not in environ.get('upgrade.protocol', '').lower():
raise HandshakeError("Upgrade protocol is not websocket")

if environ.get('REQUEST_METHOD') != 'GET':
Expand Down

0 comments on commit 8429855

Please sign in to comment.