[Modify] Remove it

This commit is contained in:
sta 2020-06-05 19:35:39 +09:00
parent f819f92475
commit 115858e5f9

View File

@ -782,22 +782,6 @@ namespace WebSocketSharp.Net
base.Add (name, checkValue (value)); base.Add (name, checkValue (value));
} }
private void checkAllowed (bool response)
{
if (_state == HttpHeaderType.Unspecified)
return;
var headerType = response
? HttpHeaderType.Response
: HttpHeaderType.Request;
if (headerType != _state) {
var msg = "This instance does not allow the header.";
throw new InvalidOperationException (msg);
}
}
private void checkAllowed (HttpHeaderType headerType) private void checkAllowed (HttpHeaderType headerType)
{ {
if (_state == HttpHeaderType.Unspecified) if (_state == HttpHeaderType.Unspecified)