Permalink
Browse files

Merge pull request #21 from plelevier/master

Fix for websocket connection issue with Firefox
  • Loading branch information...
2 parents 1b6f4d9 + 2276511 commit 37a78143ac3401e1f2da6973bbdf8e79ca9db742 @robbiehanson robbiehanson committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Core/WebSocket.m
View
@@ -111,7 +111,7 @@ + (BOOL)isWebSocketRequest:(HTTPMessage *)request
else if (![upgradeHeaderValue caseInsensitiveCompare:@"WebSocket"] == NSOrderedSame) {
isWebSocket = NO;
}
- else if (![connectionHeaderValue caseInsensitiveCompare:@"Upgrade"] == NSOrderedSame) {
+ else if ([connectionHeaderValue rangeOfString:@"Upgrade" options:NSCaseInsensitiveSearch].location == NSNotFound) {
isWebSocket = NO;
}

0 comments on commit 37a7814

Please sign in to comment.