Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Qin authored Aug 12, 2019
1 parent 1fa8446 commit 0bb0c73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Andoromeda.Socket.IO.Client/SocketIOClient.cs
Original file line number Diff line number Diff line change
@@ -104,8 +104,10 @@ private async ValueTask<ConnectionInfo> EstablishNormally()
using (var response = await _httpClient.GetAsync(builder.Uri).ConfigureAwait(false))
{
response.EnsureSuccessStatusCode();

var responseContent = await response.Content.ReadAsByteArrayAsync().ConfigureAwait(false);

info = ParseConnectionInfo(await response.Content.ReadAsByteArrayAsync().ConfigureAwait(false));
info = ParseConnectionInfo(responseContent);
}

if (!Array.Exists(info.Upgrades, r => r.Equals("websocket", StringComparison.OrdinalIgnoreCase)))

0 comments on commit 0bb0c73

Please sign in to comment.