mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
fix(v0/scrape): ensure url is string
This commit is contained in:
parent
ad1a6fbc74
commit
83a165db0f
|
@ -39,7 +39,7 @@ export async function scrapeHelper(
|
|||
returnCode: number;
|
||||
}> {
|
||||
const url = req.body.url;
|
||||
if (!url) {
|
||||
if (typeof url !== "string") {
|
||||
return { success: false, error: "Url is required", returnCode: 400 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user