[Modify] Replace it

This commit is contained in:
sta 2020-04-11 21:51:37 +09:00
parent 141819bd6e
commit bc5c2a6cf3

View File

@ -1193,7 +1193,10 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public void Add (HttpResponseHeader header, string value) public void Add (HttpResponseHeader header, string value)
{ {
doWithCheckingState (addWithoutCheckingName, Convert (header), value, true, true); var key = header.ToString ();
var name = getHeaderName (key);
doWithCheckingState (addWithoutCheckingName, name, value, true, true);
} }
/// <summary> /// <summary>