Skip to content

Commit 11360c6

Browse files
authored
Update Helpers.cs
- Dispose of the response - ConfigureAwait(false) the response so it won't have a chance to deadlock the application
1 parent d0de337 commit 11360c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Postgrest/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static async Task<BaseResponse> MakeRequest(ClientOptions clientOptions,
9494
}
9595
}
9696

97-
var response = await Client.SendAsync(requestMessage, cancellationToken);
97+
using var response = await Client.SendAsync(requestMessage, cancellationToken).ConfigureAwait(false);
9898
var content = await response.Content.ReadAsStringAsync();
9999

100100
if (response.IsSuccessStatusCode)

0 commit comments

Comments
 (0)