From eb71fadbb34de00ab490c65919138f463ef33eb5 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sun, 28 Aug 2022 05:24:16 -0400 Subject: [PATCH] fix: return from await when headers are downloaded --- ExpandedSearchInfo/SearchInfoRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExpandedSearchInfo/SearchInfoRepository.cs b/ExpandedSearchInfo/SearchInfoRepository.cs index 2673eb5..631c113 100644 --- a/ExpandedSearchInfo/SearchInfoRepository.cs +++ b/ExpandedSearchInfo/SearchInfoRepository.cs @@ -175,7 +175,7 @@ namespace ExpandedSearchInfo { provider.ModifyRequest(req); } - var resp = await client.SendAsync(req); + var resp = await client.SendAsync(req, HttpCompletionOption.ResponseHeadersRead); if (resp.StatusCode != HttpStatusCode.OK) { continue; }