mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
lint
This commit is contained in:
parent
18e69cc58a
commit
a41ec3d2f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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'] as string
|
||||
const isHtml = contentType?.includes('text/html')
|
||||
if (isHtml) {
|
||||
// this is an html page, parse rss feed links
|
||||
|
|
|
|||
Loading…
Reference in a new issue