[Modify] Polish it
This commit is contained in:
parent
63a5e9c11b
commit
5a437f7d99
@ -105,9 +105,12 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
public bool IsMultiValue (bool response)
|
public bool IsMultiValue (bool response)
|
||||||
{
|
{
|
||||||
return (_headerType & HttpHeaderType.MultiValue) == HttpHeaderType.MultiValue
|
var headerType = _headerType & HttpHeaderType.MultiValue;
|
||||||
? (response ? IsResponse : IsRequest)
|
|
||||||
: (response ? IsMultiValueInResponse : IsMultiValueInRequest);
|
if (headerType != HttpHeaderType.MultiValue)
|
||||||
|
return response ? IsMultiValueInResponse : IsMultiValueInRequest;
|
||||||
|
|
||||||
|
return response ? IsResponse : IsRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsRestricted (bool response)
|
public bool IsRestricted (bool response)
|
||||||
|
Loading…
Reference in New Issue
Block a user