[Modify] Polish it

This commit is contained in:
sta 2020-07-25 20:27:13 +09:00
parent 15344b9665
commit 63a5e9c11b

View File

@ -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