[Modify] Replace it

This commit is contained in:
sta 2020-06-10 19:38:27 +09:00
parent 1788f878b8
commit dd8340b134

View File

@ -1372,7 +1372,14 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public override void Add (string name, string value) public override void Add (string name, string value)
{ {
add (name, value, false); name = checkName (name);
value = checkValue (value);
var headerType = getHeaderType (name);
checkRestricted (name, headerType);
checkAllowed (headerType);
add (name, value, headerType);
} }
/// <summary> /// <summary>