mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Merge pull request #551 from FlowiseAI/feature/WebCrawl
This commit is contained in:
@@ -320,7 +320,7 @@ export async function xmlScrape(currentURL: string, limit: number): Promise<stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
const contentType: string | null = resp.headers.get('content-type')
|
const contentType: string | null = resp.headers.get('content-type')
|
||||||
if ((contentType && !contentType.includes('application/xml')) || !contentType) {
|
if ((contentType && !contentType.includes('application/xml') && !contentType.includes('text/xml')) || !contentType) {
|
||||||
if (process.env.DEBUG === 'true') console.error(`non xml response, content type: ${contentType}, on page: ${currentURL}`)
|
if (process.env.DEBUG === 'true') console.error(`non xml response, content type: ${contentType}, on page: ${currentURL}`)
|
||||||
return urls
|
return urls
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user