From 35810079e712b313251257bbc8a5feaf5d0e0473 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 16 Apr 2020 19:46:50 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/WebHeaderCollection.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 06180931..7540d7af 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -1635,7 +1635,10 @@ namespace WebSocketSharp.Net /// public void Set (HttpResponseHeader header, string value) { - doWithCheckingState (setWithoutCheckingName, Convert (header), value, true, true); + var key = header.ToString (); + var name = getHeaderName (key); + + doWithCheckingState (setWithoutCheckingName, name, value, true, true); } ///