[Modify] Add it

This commit is contained in:
sta 2020-05-28 20:01:06 +09:00
parent 76356dc660
commit d2e06919ec

View File

@ -1014,6 +1014,19 @@ namespace WebSocketSharp.Net
return headerInfo != null && headerInfo.IsRestricted (response); return headerInfo != null && headerInfo.IsRestricted (response);
} }
private void set (string name, string value, HttpHeaderType headerType)
{
base.Set (name, value);
if (_state != HttpHeaderType.Unspecified)
return;
if (headerType == HttpHeaderType.Unspecified)
return;
_state = headerType;
}
private void setWithoutCheckingName (string name, string value) private void setWithoutCheckingName (string name, string value)
{ {
doWithoutCheckingName (base.Set, name, value); doWithoutCheckingName (base.Set, name, value);