diff --git a/websocket-sharp/Net/HttpHeaderInfo.cs b/websocket-sharp/Net/HttpHeaderInfo.cs index f6d1afff..f7376ef3 100644 --- a/websocket-sharp/Net/HttpHeaderInfo.cs +++ b/websocket-sharp/Net/HttpHeaderInfo.cs @@ -91,7 +91,9 @@ namespace WebSocketSharp.Net public bool IsResponse { get { - return (_headerType & HttpHeaderType.Response) == HttpHeaderType.Response; + var headerType = _headerType & HttpHeaderType.Response; + + return headerType == HttpHeaderType.Response; } }