[Modify] Replace it

This commit is contained in:
sta 2020-03-06 19:37:49 +09:00
parent ca80835f27
commit a0397a14d3

View File

@ -800,7 +800,7 @@ namespace WebSocketSharp.Net
if (name.Length == 0)
throw new ArgumentException ("A string of spaces.", "name");
if (!IsHeaderName (name)) {
if (!name.IsToken ()) {
var msg = "It contains an invalid character.";
throw new ArgumentException (msg, "name");