Skip to content

Commit

Permalink
Merge pull request #551 from FlowiseAI/feature/WebCrawl
Browse files Browse the repository at this point in the history
  • Loading branch information
chungyau97 authored Jul 16, 2023
2 parents bb55198 + 97eb80b commit 7d985db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export async function xmlScrape(currentURL: string, limit: number): Promise<stri
}

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}`)
return urls
}
Expand Down

0 comments on commit 7d985db

Please sign in to comment.