From cd092a4b5177110bc70ae3f59049b6674f8ac909 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 28 May 2020 20:05:30 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/WebHeaderCollection.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 70246862..76c55eb3 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -1846,17 +1846,9 @@ namespace WebSocketSharp.Net checkRestricted (name); checkAllowed (name); - base.Set (name, value); - - if (_state != HttpHeaderType.Unspecified) - return; - var headerType = getHeaderType (name); - if (headerType == HttpHeaderType.Unspecified) - return; - - _state = headerType; + set (name, value, headerType); } ///