mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Update fireEngine.ts
This commit is contained in:
parent
1b3ad60a2c
commit
819ad50af3
|
@ -158,7 +158,8 @@ export async function scrapWithFireEngine({
|
|||
};
|
||||
}
|
||||
|
||||
const contentType = checkStatusResponse.data.responseHeaders["content-type"];
|
||||
const contentType = checkStatusResponse.data.responseHeaders?.["content-type"];
|
||||
|
||||
if (contentType && contentType.includes("application/pdf")) {
|
||||
const { content, pageStatusCode, pageError } = await fetchAndProcessPdf(
|
||||
url,
|
||||
|
|
Loading…
Reference in New Issue
Block a user