Skip to content

Commit c38e68e

Browse files
authored
fix(core): heartbeat headers (#746)
Fix heartbeat headers
1 parent f179882 commit c38e68e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,8 @@ impl APIClient {
976976
let body = json!({
977977
"node_to_queries": node_to_queries
978978
});
979-
let builder = self.cli.post(endpoint.clone()).json(&body);
979+
let headers = self.make_headers(None)?;
980+
let builder = self.cli.post(endpoint.clone()).json(&body).headers(headers);
980981
let request = self.wrap_auth_or_session_token(builder)?.build()?;
981982
let response = self.query_request_helper(request, true, false).await?;
982983
let json: Value = response.json().await?;

0 commit comments

Comments
 (0)