瀏覽代碼

Changed HTTP status message

Taddeus Kroes 11 年之前
父節點
當前提交
447ee6fa54
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      handshake.py

+ 1 - 1
handshake.py

@@ -212,7 +212,7 @@ class ServerHandshake(Handshake):
         location = '%s://%s%s' % (scheme, host, self.wsock.location)
 
         # Construct HTTP response header
-        yield 'HTTP/1.1 101 Web Socket Protocol Handshake'
+        yield 'HTTP/1.1 101 Switching Protocols'
         yield 'Upgrade', 'websocket'
         yield 'Connection', 'Upgrade'
         yield 'Sec-WebSocket-Origin', origin