[Modify] Polish it
This commit is contained in:
parent
5f3a07dfa8
commit
2a7f9bb57f
@ -954,16 +954,14 @@ namespace WebSocketSharp.Net
|
|||||||
return HttpHeaderType.Unspecified;
|
return HttpHeaderType.Unspecified;
|
||||||
|
|
||||||
if (headerInfo.IsRequest) {
|
if (headerInfo.IsRequest) {
|
||||||
if (headerInfo.IsResponse)
|
return !headerInfo.IsResponse
|
||||||
return HttpHeaderType.Unspecified;
|
? HttpHeaderType.Request
|
||||||
|
: HttpHeaderType.Unspecified;
|
||||||
return HttpHeaderType.Request;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (headerInfo.IsResponse)
|
return headerInfo.IsResponse
|
||||||
return HttpHeaderType.Response;
|
? HttpHeaderType.Response
|
||||||
|
: HttpHeaderType.Unspecified;
|
||||||
return HttpHeaderType.Unspecified;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool isMultiValue (string name, bool response)
|
private static bool isMultiValue (string name, bool response)
|
||||||
|
Loading…
Reference in New Issue
Block a user