Skip to content

Commit

Permalink
Use await on reading the response content
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Sep 15, 2023
1 parent e64ad7c commit 5c71a91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public async Task<HttpResponse> GetResponseAsync(HttpRequest request, CookieCont
}
else
{
data = responseMessage.Content.ReadAsByteArrayAsync(cts.Token).GetAwaiter().GetResult();
data = await responseMessage.Content.ReadAsByteArrayAsync(cts.Token);
}
}
catch (Exception ex)
Expand Down

0 comments on commit 5c71a91

Please sign in to comment.