[Modify] Replace it

This commit is contained in:
sta 2020-01-15 19:41:27 +09:00
parent a93c894e60
commit a1e56b5251

View File

@ -784,7 +784,7 @@ namespace WebSocketSharp.Net
return;
}
if (!value.IsPrintable ()) {
if (!isValidForStatusDescription (value)) {
var msg = "It contains an invalid character.";
throw new ArgumentException (msg, "value");
}