Commit ac1a07d9 by Roy Committed by GitHub

fix: correct external url check condition in readFiles (#6003)

parent 88805564
...@@ -199,7 +199,7 @@ export const getFileContentFromLinks = async ({ ...@@ -199,7 +199,7 @@ export const getFileContentFromLinks = async ({
const buffer = Buffer.from(response.data, 'binary'); const buffer = Buffer.from(response.data, 'binary');
const urlObj = new URL(url, 'http://localhost:3000'); const urlObj = new URL(url, 'http://localhost:3000');
const isChatExternalUrl = urlObj.pathname.startsWith( const isChatExternalUrl = !urlObj.pathname.startsWith(
`/${S3Buckets.private}/${S3Sources.chat}/` `/${S3Buckets.private}/${S3Sources.chat}/`
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment