Skip to content

Commit

Permalink
fix: erase fetch option
Browse files Browse the repository at this point in the history
  • Loading branch information
JonghunAn committed Aug 5, 2024
1 parent d7775da commit fd11eb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/utils/parser.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ export async function parseLinkTitleAndContent(url: string): Promise<{
thumbnail: string;
}> {
// HTML Parsing
const fetchTest = await fetch(url, {
method: 'GET',
redirect: 'manual',
});
const fetchTest = await fetch(url);
const fetchArrayBuffer = await fetchTest.arrayBuffer();
const contentType = fetchTest.headers.get('Content-Type');
let charset = 'utf-8';
Expand Down

0 comments on commit fd11eb1

Please sign in to comment.