Skip to content

Commit ea98202

Browse files
fix
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent e9549dd commit ea98202

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/connection/connections/HttpConnection.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ export default class HttpConnection implements IConnectionProvider {
9898

9999
this.connection = new ThriftHttpConnection(
100100
{
101-
url: `${options.https ? 'https' : 'http'}://${options.host.replace(/\/$/, '')}:${options.port}${
102-
options.path ?? '/'
103-
}`,
101+
url: `${options.https ? 'https' : 'http'}://${options.host.replace(/\/$/, '')}:${options.port}${options.path ? (options.path.startsWith('/') ? '' : '/') + options.path.replace(/\/$/, '') : '/'}`,
104102
transport: thrift.TBufferedTransport,
105103
protocol: thrift.TBinaryProtocol,
106104
getRetryPolicy: () => this.getRetryPolicy(),

0 commit comments

Comments
 (0)