[Modify] Replace it

This commit is contained in:
sta 2020-03-12 21:29:05 +09:00
parent ac30edeafd
commit e7a4729bf8

View File

@ -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");