From a8292a1abebbf7af0086bbced34dbb870982466c Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 22 Jul 2024 05:52:44 +0200 Subject: [PATCH 1/3] chore: async query request also uses `HttpCompletionOption.ResponseHeadersRead` --- Client/QueryApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/QueryApi.cs b/Client/QueryApi.cs index 361d10457..e60199b11 100644 --- a/Client/QueryApi.cs +++ b/Client/QueryApi.cs @@ -792,7 +792,7 @@ private Func, RestRequest> Arguments.CheckNonEmptyString(optionsOrg, OrgArgumentValidation); return advancedResponseWriter => _service - .PostQueryWithRestRequest(null, "application/json", null, optionsOrg, null, query) + .PostQueryWithRestRequest(null, "application/json", null, optionsOrg, null, query, HttpCompletionOption.ResponseHeadersRead) .AddAdvancedResponseHandler(advancedResponseWriter); } From e15becf8f6e7269e5c049b0f33fcc6dba9fda6d0 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 22 Jul 2024 06:05:27 +0200 Subject: [PATCH 2/3] fix: code style --- Client/QueryApi.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/QueryApi.cs b/Client/QueryApi.cs index e60199b11..34b6a6725 100644 --- a/Client/QueryApi.cs +++ b/Client/QueryApi.cs @@ -792,7 +792,8 @@ private Func, RestRequest> Arguments.CheckNonEmptyString(optionsOrg, OrgArgumentValidation); return advancedResponseWriter => _service - .PostQueryWithRestRequest(null, "application/json", null, optionsOrg, null, query, HttpCompletionOption.ResponseHeadersRead) + .PostQueryWithRestRequest(null, "application/json", null, optionsOrg, null, query, + HttpCompletionOption.ResponseHeadersRead) .AddAdvancedResponseHandler(advancedResponseWriter); } From 466a9bc81f277c5c391929eeaafd8a6d9a31f500 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Mon, 22 Jul 2024 06:16:34 +0200 Subject: [PATCH 3/3] docs: update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 945f02714..5b63fca9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 4.17.0 [unreleased] +### Bug Fixes +1. [#649](https://github.com/influxdata/influxdb-client-csharp/pull/649): Use HttpCompletionOption.ResponseHeadersRead for asynchronous QueryApi + ## 4.16.0 [2024-06-24] ### Features: