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