[Modify] Polish it
This commit is contained in:
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…
Reference in New Issue
Block a user