[Modify] Add it
This commit is contained in:
parent
ab8ccef958
commit
6287ab1694
@ -772,6 +772,19 @@ namespace WebSocketSharp.Net
|
|||||||
doWithCheckingState (act, checkName (name), value, true);
|
doWithCheckingState (act, checkName (name), value, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void add (string name, string value, HttpHeaderType headerType)
|
||||||
|
{
|
||||||
|
base.Add (name, value);
|
||||||
|
|
||||||
|
if (_state != HttpHeaderType.Unspecified)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (headerType == HttpHeaderType.Unspecified)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_state = headerType;
|
||||||
|
}
|
||||||
|
|
||||||
private void addWithoutCheckingName (string name, string value)
|
private void addWithoutCheckingName (string name, string value)
|
||||||
{
|
{
|
||||||
doWithoutCheckingName (base.Add, name, value);
|
doWithoutCheckingName (base.Add, name, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user