From 1788f878b88d8467053db5b0a4a7f2a7a4635d36 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 9 Jun 2020 19:51:16 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/WebHeaderCollection.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index 5cf29296..e573c0da 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -1329,10 +1329,14 @@ namespace WebSocketSharp.Net /// public void Add (HttpResponseHeader header, string value) { + value = checkValue (value); + var key = header.ToString (); var name = getHeaderName (key); - doWithCheckingState (addWithoutCheckingName, name, value, true, true); + checkRestricted (name, HttpHeaderType.Response); + checkAllowed (HttpHeaderType.Response); + add (name, value, HttpHeaderType.Response); } ///