diff --git a/websocket-sharp/Net/WebHeaderCollection.cs b/websocket-sharp/Net/WebHeaderCollection.cs index ad07ca8a..ddaba6cc 100644 --- a/websocket-sharp/Net/WebHeaderCollection.cs +++ b/websocket-sharp/Net/WebHeaderCollection.cs @@ -847,7 +847,7 @@ namespace WebSocketSharp.Net throw new ArgumentOutOfRangeException ("value", msg); } - if (!IsHeaderValue (value)) { + if (!value.IsText ()) { var msg = "It contains an invalid character."; throw new ArgumentException (msg, "value");