Skip to content

Commit 4b127cf

Browse files
committed
Fix port definition in CM URL.
1 parent df3a076 commit 4b127cf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ function ConManager(baseurl, token_name) {
9191
}
9292

9393
let options = {
94-
'host': this._baseurl.host,
94+
'hostname': this._baseurl.hostname,
95+
'port': this._baseurl.port,
9596
'path': url.resolve(this._baseurl.path, endpoint),
9697
'method': method,
9798
'headers': headers
@@ -230,7 +231,8 @@ function ConManager(baseurl, token_name) {
230231
}
231232

232233
let options = {
233-
'host': this._baseurl.host,
234+
'hostname': this._baseurl.hostname,
235+
'port': this._baseurl.port,
234236
'path': url.resolve(this._baseurl.path, `fileupload/part/${uuid}/${off}`),
235237
'method': 'PUT',
236238
'headers': headers
@@ -340,7 +342,8 @@ function ConManager(baseurl, token_name) {
340342
}
341343

342344
let options = {
343-
'host': urlpath.host,
345+
'hostname': urlpath.hostname,
346+
'port': urlpath.port,
344347
'path': urlpath.path,
345348
'method': 'GET',
346349
'headers': headers

0 commit comments

Comments
 (0)