[Modify] Polish it

master
sta 5 years ago
parent 4f64885b91
commit 15344b9665

@ -112,7 +112,9 @@ namespace WebSocketSharp.Net
public bool IsRestricted (bool response)
{
return (_headerType & HttpHeaderType.Restricted) == HttpHeaderType.Restricted
var headerType = _headerType & HttpHeaderType.Restricted;
return headerType == HttpHeaderType.Restricted
? (response ? IsResponse : IsRequest)
: false;
}

Loading…
Cancel
Save