Skip to content

Commit 835b925

Browse files
committed
set HttpCompletionOption in Http.SendAsync
1 parent a0bb995 commit 835b925

File tree

1 file changed

+1
-1
lines changed
  • Flow.Launcher.Infrastructure/Http

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Http/Http.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static async Task<Stream> GetStreamAsync([NotNull] string url, Cancellati
159159
/// </summary>
160160
public static async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken token = default)
161161
{
162-
return await client.SendAsync(request, token);
162+
return await client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token);
163163
}
164164
}
165165
}

0 commit comments

Comments
 (0)