We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3079c31 commit c98ece1Copy full SHA for c98ece1
index.ts
@@ -433,7 +433,7 @@ export async function getLinkPreview(
433
options?.handleRedirects
434
) {
435
const locationHeader = response.headers.get(`location`) || ``;
436
- const isAbsoluteURI = locationHeader.startsWith('http://') || locationHeader.startsWith('https://');
+ const isAbsoluteURI = locationHeader.startsWith('http://') || locationHeader.startsWith('https://');
437
438
// Resolve the URL, handling both absolute and relative URLs
439
const forwardedUrl = isAbsoluteURI
@@ -492,3 +492,4 @@ export async function getPreviewFromContent(
492
493
return parseResponse(response, options);
494
}
495
+
0 commit comments