From 55d647e48c1c0b7371c54c587637630f0373f37a Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 8 Jul 2020 20:32:30 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/WebHeaderCollection.cs | 27 ---------------------- 1 file changed, 27 deletions(-) diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index e7181f07..66c0aec3 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -836,33 +836,6 @@ namespace WebSocketSharp.Net } } - private static string checkValue (string value) - { - if (value == null) - return String.Empty; - - value = value.Trim (); - - var len = value.Length; - - if (len == 0) - return value; - - if (len > 65535) { - var msg = "The length of the value is greater than 65,535 characters."; - - throw new ArgumentOutOfRangeException ("value", msg); - } - - if (!value.IsText ()) { - var msg = "The value contains an invalid character."; - - throw new ArgumentException (msg, "value"); - } - - return value; - } - private static string checkValue (string value, string paramName) { if (value == null)