From 115858e5f9f430ca42854cd7799f9b978f00ccad Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 5 Jun 2020 19:35:39 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/WebHeaderCollection.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 4a35ca03..e68dd631 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -782,22 +782,6 @@ namespace WebSocketSharp.Net 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) { if (_state == HttpHeaderType.Unspecified)