How to change Connection
header to "Upgrade"?
Default value of Connection
header is "Upgrade,Keep-Alive"
I was trying both answers from this question.
But after i change it to "Upgrade":
var url = new Uri("wss://link");
var ws = new ClientWebSocket();
ws.Options.SetRequestHeader("Connection", "Upgrade");
ws.ConnectAsync(url, CancellationToken.None);
in Fiddler i see this: Connection: Upgrade,Upgrade,Keep-Alive
.
How to set Connection
header value to "Upgrade" (remove "Keep-Alive")?