set HttpCompletionOption in Http.SendAsync

This commit is contained in:
Ioannis G 2022-01-13 00:36:14 +02:00
parent a0bb995643
commit 835b925342
No known key found for this signature in database
GPG key ID: EAC0E4E5E36AC49E

View file

@ -159,7 +159,7 @@ namespace Flow.Launcher.Infrastructure.Http
/// </summary>
public static async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken token = default)
{
return await client.SendAsync(request, token);
return await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token);
}
}
}