simpleConnector的笔误

This commit is contained in:
Xu Chang 2024-04-16 15:41:56 +08:00
parent deb3384362
commit 6cec5d9272
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class SimpleConnector {
this.configuration = configuration;
const { routerPrefixes, http } = configuration;
const { ssl, hostname, port, path } = http;
const protocol = ssl ? 'https:' : 'http';
const protocol = ssl ? 'https:' : 'http:';
let serverUrl = `${protocol}//${hostname}`;
this.serverUrl = serverUrl;
if (typeof port === 'number') {

View File

@ -28,7 +28,7 @@ export default class SimpleConnector<ED extends EntityDict, FrontCxt extends Syn
this.configuration = configuration;
const { routerPrefixes, http } = configuration;
const { ssl, hostname, port, path } = http;
const protocol = ssl ? 'https:' : 'http';
const protocol = ssl ? 'https:' : 'http:';
let serverUrl = `${protocol}//${hostname}`;
this.serverUrl = serverUrl;
if (typeof port === 'number') {