From d64ee7533c02e8b54ec9c45c6b779af20fe1be2d Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 22 Jul 2020 20:25:07 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpHeaderInfo.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpHeaderInfo.cs b/websocket-sharp/Net/HttpHeaderInfo.cs index eece938b..f6d1afff 100644 --- a/websocket-sharp/Net/HttpHeaderInfo.cs +++ b/websocket-sharp/Net/HttpHeaderInfo.cs @@ -83,7 +83,9 @@ namespace WebSocketSharp.Net public bool IsRequest { get { - return (_headerType & HttpHeaderType.Request) == HttpHeaderType.Request; + var headerType = _headerType & HttpHeaderType.Request; + + return headerType == HttpHeaderType.Request; } }