Skip to content

Commit 4a459f1

Browse files
committed
HTTP: complete only when actually complete
1 parent 04094f5 commit 4a459f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/ManagedHttpSmartSubtransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ private HttpResponseMessage GetResponseWithRedirects()
196196
request.Content.Headers.Add("Content-Type", ContentType);
197197
}
198198

199-
var response = httpClient.SendAsync(request).Result;
199+
var response = httpClient.SendAsync(request, HttpCompletionOption.ResponseContentRead).Result;
200200

201201
if (response.StatusCode == HttpStatusCode.OK)
202202
{

0 commit comments

Comments
 (0)