[Modify] Add it
This commit is contained in:
parent
1d16b4364d
commit
68036554db
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user