Skip to content

Commit 9032ebb

Browse files
authored
fix: use hostname instead of host
1 parent f2b79ca commit 9032ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function parsePath(url) {
4242
output.protocols = protocols(parsed)
4343
output.protocol = output.protocols[0]
4444
output.port = parsed.port
45-
output.resource = parsed.host
45+
output.resource = parsed.hostname
4646
output.user = parsed.username || ""
4747
output.password = parsed.password || ""
4848
output.pathname = parsed.pathname

0 commit comments

Comments
 (0)