[Modify] Replace it

This commit is contained in:
sta 2020-04-15 19:36:34 +09:00
parent 9544db0f60
commit 514c943904

View File

@ -1594,7 +1594,10 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public void Set (HttpRequestHeader header, string value) public void Set (HttpRequestHeader header, string value)
{ {
doWithCheckingState (setWithoutCheckingName, Convert (header), value, false, true); var key = header.ToString ();
var name = getHeaderName (key);
doWithCheckingState (setWithoutCheckingName, name, value, false, true);
} }
/// <summary> /// <summary>