Skip to content

Commit

Permalink
Merge pull request #1 from qinxiaowen/master
Browse files Browse the repository at this point in the history
fix build error
  • Loading branch information
KodamaSakuno authored Aug 12, 2019
2 parents 1fa8446 + 0bb0c73 commit 90690ce
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
Expand Up @@ -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)))
Expand Down

0 comments on commit 90690ce

Please sign in to comment.