[Modify] Polish it
This commit is contained in:
parent
0c97729695
commit
5f3a07dfa8
@ -953,10 +953,14 @@ namespace WebSocketSharp.Net
|
||||
if (headerInfo == null)
|
||||
return HttpHeaderType.Unspecified;
|
||||
|
||||
if (headerInfo.IsRequest && !headerInfo.IsResponse)
|
||||
return HttpHeaderType.Request;
|
||||
if (headerInfo.IsRequest) {
|
||||
if (headerInfo.IsResponse)
|
||||
return HttpHeaderType.Unspecified;
|
||||
|
||||
if (!headerInfo.IsRequest && headerInfo.IsResponse)
|
||||
return HttpHeaderType.Request;
|
||||
}
|
||||
|
||||
if (headerInfo.IsResponse)
|
||||
return HttpHeaderType.Response;
|
||||
|
||||
return HttpHeaderType.Unspecified;
|
||||
|
Loading…
Reference in New Issue
Block a user