From 8c600dc49f97f4ccedb591aba50bfbf904b45af9 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 14 Jun 2020 15:47:05 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/WebHeaderCollection.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index f51e9d5f..40ad226c 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -813,18 +813,6 @@ namespace WebSocketSharp.Net return name; } - 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 checkRestricted (string name, HttpHeaderType headerType) { if (_internallyUsed)