diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 6d71ae98..65416f19 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -226,7 +226,7 @@ namespace WebSocketSharp.Net } number = 0; - state = c != '#' ? 2 : 3; + state = c == '#' ? 3 : 2; continue; }