[Modify] Remove it
This commit is contained in:
parent
115858e5f9
commit
ab8ccef958
@ -797,23 +797,6 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkAllowed (string name)
|
|
||||||
{
|
|
||||||
if (_state == HttpHeaderType.Unspecified)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var headerType = getHeaderType (name);
|
|
||||||
|
|
||||||
if (headerType == HttpHeaderType.Unspecified)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (headerType != _state) {
|
|
||||||
var msg = "This instance does not allow the header.";
|
|
||||||
|
|
||||||
throw new InvalidOperationException (msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static string checkName (string name)
|
private static string checkName (string name)
|
||||||
{
|
{
|
||||||
if (name == null)
|
if (name == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user