Skip to content

Commit c98ece1

Browse files
committed
Fix Style
1 parent 3079c31 commit c98ece1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export async function getLinkPreview(
433433
options?.handleRedirects
434434
) {
435435
const locationHeader = response.headers.get(`location`) || ``;
436-
const isAbsoluteURI = locationHeader.startsWith('http://') || locationHeader.startsWith('https://');
436+
const isAbsoluteURI = locationHeader.startsWith('http://') || locationHeader.startsWith('https://');
437437

438438
// Resolve the URL, handling both absolute and relative URLs
439439
const forwardedUrl = isAbsoluteURI
@@ -492,3 +492,4 @@ export async function getPreviewFromContent(
492492

493493
return parseResponse(response, options);
494494
}
495+

0 commit comments

Comments
 (0)