mirror of
https://github.com/Readarr/Readarr
synced 2025-12-30 12:13:55 +01:00
Use await on reading the response content
(cherry picked from commit 82d586e7015d7ea06356ca436024a8af5a4fb677)
This commit is contained in:
parent
71f4a88ab3
commit
9fe08429bc
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue