Browse files

Fix websocket upgrade handshake (throw error code 2)

  • Loading branch information...
1 parent 8f69769 commit e0db7dcace5b0dc4485c6ec7c84ff1924203ee89 @mnazwan mnazwan committed Jul 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 MBWebSocketServer.m
View
2 MBWebSocketServer.m
@@ -56,7 +56,7 @@ - (void)respondToHandshake:(NSData *)data {
}
NSString *response = [NSString stringWithFormat:
- @"HTTP/1.1 101 Switching Protocols\r\n"
+ @"HTTP/1.1 101 Web Socket Protocol Handshake\r\n"
"Upgrade: websocket\r\n"
"Connection: Upgrade\r\n"
"Sec-WebSocket-Accept: %@\r\n\r\n",

0 comments on commit e0db7dc

Please sign in to comment.