Skip to content

Commit 1ebac68

Browse files
author
Michał Miszczyszyn
authored
Fix missing port bug (#252)
1 parent ed9ec07 commit 1ebac68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/loaders/loadFromHttp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function buildOptions(pathToSpec) {
1212
const requestUrl = url.parse(pathToSpec);
1313
return {
1414
method: "GET",
15-
hostname: requestUrl.host,
15+
hostname: requestUrl.hostname,
16+
port: requestUrl.port,
1617
path: requestUrl.path,
1718
};
1819
}

0 commit comments

Comments
 (0)