[Modify] Replace it

This commit is contained in:
sta 2020-01-09 20:13:04 +09:00
parent 82265ca289
commit 759c5f6719

View File

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