[Modify] Remove it
This commit is contained in:
parent
890c351c0f
commit
9e129a9f9e
@ -902,27 +902,6 @@ namespace WebSocketSharp.Net
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void doWithCheckingState (
|
|
||||||
Action <string, string> action, string name, string value, bool setState
|
|
||||||
)
|
|
||||||
{
|
|
||||||
var headerType = getHeaderType (name);
|
|
||||||
|
|
||||||
if (headerType == HttpHeaderType.Response) {
|
|
||||||
doWithCheckingState (action, name, value, true, setState);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (headerType == HttpHeaderType.Request) {
|
|
||||||
doWithCheckingState (action, name, value, false, setState);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
action (name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void doWithCheckingState (
|
private void doWithCheckingState (
|
||||||
Action <string, string> action,
|
Action <string, string> action,
|
||||||
string name,
|
string name,
|
||||||
|
Loading…
Reference in New Issue
Block a user