[Modify] Replace it
This commit is contained in:
parent
82265ca289
commit
759c5f6719
@ -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");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user