[Modify] Add it

This commit is contained in:
sta 2020-05-20 19:45:20 +09:00
parent 1d16b4364d
commit 68036554db

View File

@ -849,6 +849,18 @@ namespace WebSocketSharp.Net
}
}
private void checkRestricted (string name, bool response)
{
if (_internallyUsed)
return;
if (isRestricted (name, response)) {
var msg = "The header is a restricted header.";
throw new ArgumentException (msg);
}
}
private void checkState (bool response)
{
if (_state == HttpHeaderType.Unspecified)