diff --git a/packages/grpc-js-core/src/channel.ts b/packages/grpc-js-core/src/channel.ts index e0b1a240..5c1b2d25 100644 --- a/packages/grpc-js-core/src/channel.ts +++ b/packages/grpc-js-core/src/channel.ts @@ -213,9 +213,9 @@ export class Http2Channel extends EventEmitter implements Channel { private readonly options: Partial) { super(); if (credentials.isSecure()) { - this.target = new url.URL(`http://${address}`); - } else { this.target = new url.URL(`https://${address}`); + } else { + this.target = new url.URL(`http://${address}`); } // TODO(murgatroid99): Add more centralized handling of channel options if (this.options['grpc.default_authority']) {