Skip to content

Commit

Permalink
fix: use hostname instead of host to remove any port references on it…
Browse files Browse the repository at this point in the history
… (PL-000) (#17)

Co-authored-by: Pedro Carvalho <[email protected]>
  • Loading branch information
pmvrmc and Pedro Carvalho authored Jul 30, 2024
1 parent 7aec5e8 commit 7460488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chargebee.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function extractURLOptions(urlStr: string) {
const url = new URL(urlStr);

return {
hostSuffix: url.host,
hostSuffix: url.hostname,
apiPath: url.pathname,
protocol: url.protocol.replace(":", ""),
port: url.port,
Expand Down

0 comments on commit 7460488

Please sign in to comment.