Skip to content

Commit

Permalink
Update Helpers.cs
Browse files Browse the repository at this point in the history
- Dispose of the response
- ConfigureAwait(false) the response so it won't have a chance to deadlock the application
  • Loading branch information
pur3extreme authored May 16, 2024
1 parent d0de337 commit 11360c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Postgrest/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static async Task<BaseResponse> MakeRequest(ClientOptions clientOptions,
}
}

var response = await Client.SendAsync(requestMessage, cancellationToken);
using var response = await Client.SendAsync(requestMessage, cancellationToken).ConfigureAwait(false);
var content = await response.Content.ReadAsStringAsync();

if (response.IsSuccessStatusCode)
Expand Down

0 comments on commit 11360c6

Please sign in to comment.