[Modify] Replace it

This commit is contained in:
sta 2020-06-08 20:09:40 +09:00
parent 72d3896b9f
commit d42c7c711c

View File

@ -1239,7 +1239,14 @@ namespace WebSocketSharp.Net
? header.Substring (idx + 1) ? header.Substring (idx + 1)
: String.Empty; : String.Empty;
add (name, val, false); name = checkName (name);
val = checkValue (val);
var headerType = getHeaderType (name);
checkRestricted (name, headerType);
checkAllowed (headerType);
add (name, val, headerType);
} }
/// <summary> /// <summary>