Skip to content

Commit

Permalink
dispose of response
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored and devlead committed Sep 24, 2024
1 parent f4d5f0f commit e9da32b
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 e9da32b

Please sign in to comment.