mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 04:16:51 +00:00
Fixing Async Deadlock
Adding missing ConfigureAwait + put on single line await & ConfigureAwait
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Octokit.Internal
|
||||
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
|
||||
{
|
||||
// Clone the request/content incase we get a redirect
|
||||
var clonedRequest = await CloneHttpRequestMessageAsync(request);
|
||||
var clonedRequest = await CloneHttpRequestMessageAsync(request).ConfigureAwait(false);
|
||||
|
||||
// Send initial response
|
||||
var response = await _http.SendAsync(request, HttpCompletionOption.ResponseContentRead, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user