[Modify] Replace it

This commit is contained in:
sta 2020-06-07 20:52:39 +09:00
parent 6287ab1694
commit 72d3896b9f

View File

@ -1146,7 +1146,13 @@ namespace WebSocketSharp.Net
/// </exception>
protected void AddWithoutValidate (string headerName, string headerValue)
{
add (headerName, headerValue, true);
headerName = checkName (headerName);
headerValue = checkValue (headerValue);
var headerType = getHeaderType (headerName);
checkAllowed (headerType);
add (headerName, headerValue, headerType);
}
#endregion