This commit is contained in:
Hongbo Wu
2023-12-12 19:48:08 +08:00
parent a41ec3d2f6
commit 9b8e4a6876

View File

@ -444,7 +444,7 @@ export const scanFeedsResolver = authorized<
const response = await axios.get(url, RSS_PARSER_CONFIG)
const content = response.data as string
// check if the content is html or xml
const contentType = response.headers['Content-Type'] as string
const contentType = response.headers['Content-Type']
const isHtml = contentType?.includes('text/html')
if (isHtml) {
// this is an html page, parse rss feed links