Skip to content

Commit

Permalink
Rename the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
slvrtrn committed Aug 19, 2024
1 parent b29a60c commit 58cf433
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/client-node/src/connection/node_base_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,16 @@ export abstract class NodeBaseConnection
})
const { controller, controllerCleanup } = this.getAbortController(params)
// allows to enforce the compression via the settings even if the client instance has it disabled
const decompressResponse = clickhouse_settings.enable_http_compression === 1
const enableResponseCompression =
clickhouse_settings.enable_http_compression === 1
try {
const { stream, response_headers } = await this.request(
{
method: 'POST',
url: transformUrl({ url: this.params.url, searchParams }),
body: params.query,
abort_signal: controller.signal,
enable_response_compression: decompressResponse,
enable_response_compression: enableResponseCompression,
headers: this.buildRequestHeaders(params),
},
'Query',
Expand All @@ -171,7 +172,7 @@ export abstract class NodeBaseConnection
search_params: searchParams,
err: err as Error,
extra_args: {
decompress_response: decompressResponse,
decompress_response: enableResponseCompression,
clickhouse_settings,
},
})
Expand Down

0 comments on commit 58cf433

Please sign in to comment.