Skip to content

Commit 1b26bd0

Browse files
BrandonFreeman-CavalloKSDaemon
authored andcommitted
fix: Allow config http protocol to be passed to clickhouse driver. (cube-js#9195)
Co-authored-by: Konstantin Burkalev <[email protected]>
1 parent 98b691c commit 1b26bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
142142
const dataSource = config.dataSource ?? assertDataSource('default');
143143
const host = config.host ?? getEnv('dbHost', { dataSource });
144144
const port = config.port ?? getEnv('dbPort', { dataSource }) ?? 8123;
145-
const protocol = config.protocol ?? getEnv('dbSsl', { dataSource }) ? 'https:' : 'http:';
145+
const protocol = config.protocol ?? (getEnv('dbSsl', { dataSource }) ? 'https:' : 'http:');
146146
const url = `${protocol}//${host}:${port}`;
147147

148148
const username = config.username ?? getEnv('dbUser', { dataSource });

0 commit comments

Comments
 (0)