Skip to content

Commit

Permalink
fix: async queries also uses `HttpCompletionOption.ResponseHeadersRea…
Browse files Browse the repository at this point in the history
…d` (#649)
  • Loading branch information
bednar authored Jul 22, 2024
1 parent 210b502 commit 70fb7e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
3 changes: 2 additions & 1 deletion Client/QueryApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ private Func<Func<HttpResponseMessage, RestRequest, RestResponse>, 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);
}

Expand Down

0 comments on commit 70fb7e1

Please sign in to comment.