Skip to content

Commit

Permalink
Merge pull request #10 from SimonCropp/dispose-of-response
Browse files Browse the repository at this point in the history
dispose of response
  • Loading branch information
devlead authored Sep 24, 2024
2 parents f4d5f0f + e9da32b commit 2d82c1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Blobify/Services/Storage/TokenService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ await GetAzureToken(tenantId),
null,
null
);
var response = await httpClient.SendAsync(

using var response = await httpClient.SendAsync(
new HttpRequestMessage(
method,
url
Expand All @@ -117,6 +118,7 @@ await GetAzureToken(tenantId),
HttpCompletionOption.ResponseHeadersRead,
cancellationToken
);

return (
response.StatusCode,
(
Expand Down

0 comments on commit 2d82c1b

Please sign in to comment.