Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 24, 2024
1 parent b3a52f3 commit 048d6c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export function cn(...inputs: ClassValue[]) {
}
export const getOrigin = ({ headers }: { headers: Headers }) => {
const url = new URL(headers.get("x-request-url")!);
return `${url.protocol}://${url.host}`;
return `${url.protocol}//${url.host}`;
}

export const getCanonical = ({ headers }: { headers: Headers }) => {
const url = new URL(headers.get("x-request-url")!);
return `${url.protocol}://${url.host}${url.pathname}`;
return `${url.protocol}//${url.host}${url.pathname}`;
}

export const createAlternates = ({ headers }: { headers: Headers; }) => {
Expand Down

0 comments on commit 048d6c0

Please sign in to comment.