From 63a5e9c11bf3e95dd05f92fa31bcdd773cdc73a5 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 25 Jul 2020 20:27:13 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpHeaderInfo.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/websocket-sharp/Net/HttpHeaderInfo.cs b/websocket-sharp/Net/HttpHeaderInfo.cs index 1a56eb2c..dbaac502 100644 --- a/websocket-sharp/Net/HttpHeaderInfo.cs +++ b/websocket-sharp/Net/HttpHeaderInfo.cs @@ -114,9 +114,10 @@ namespace WebSocketSharp.Net { var headerType = _headerType & HttpHeaderType.Restricted; - return headerType == HttpHeaderType.Restricted - ? (response ? IsResponse : IsRequest) - : false; + if (headerType != HttpHeaderType.Restricted) + return false; + + return response ? IsResponse : IsRequest; } #endregion