remove Constants.Headers.ConnectionUpgrade
This commit is contained in:
parent
f1c8dc408f
commit
9ee0242717
|
|
@ -10,7 +10,6 @@ namespace ANCMStressTestApp
|
|||
public const string Upgrade = "Upgrade";
|
||||
public const string UpgradeWebSocket = "websocket";
|
||||
public const string Connection = "Connection";
|
||||
public const string ConnectionUpgrade = "Upgrade";
|
||||
public const string SecWebSocketKey = "Sec-WebSocket-Key";
|
||||
public const string SecWebSocketAccept = "Sec-WebSocket-Accept";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace ANCMStressTestApp
|
|||
{
|
||||
public static IEnumerable<KeyValuePair<string, string>> GenerateResponseHeaders(string key)
|
||||
{
|
||||
yield return new KeyValuePair<string, string>(Constants.Headers.Connection, Constants.Headers.ConnectionUpgrade);
|
||||
yield return new KeyValuePair<string, string>(Constants.Headers.Connection, Constants.Headers.Upgrade);
|
||||
yield return new KeyValuePair<string, string>(Constants.Headers.Upgrade, Constants.Headers.UpgradeWebSocket);
|
||||
yield return new KeyValuePair<string, string>(Constants.Headers.SecWebSocketAccept, CreateResponseKey(key));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue