Skip to content

Commit

Permalink
fix: use hostname instead of host
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jul 11, 2022
1 parent f2b79ca commit 9032ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function parsePath(url) {
output.protocols = protocols(parsed)
output.protocol = output.protocols[0]
output.port = parsed.port
output.resource = parsed.host
output.resource = parsed.hostname
output.user = parsed.username || ""
output.password = parsed.password || ""
output.pathname = parsed.pathname
Expand Down

0 comments on commit 9032ebb

Please sign in to comment.