[Modify] Add it

This commit is contained in:
sta 2020-06-06 21:13:44 +09:00
parent ab8ccef958
commit 6287ab1694

View File

@ -772,6 +772,19 @@ namespace WebSocketSharp.Net
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)
{
doWithoutCheckingName (base.Add, name, value);