Skip to content

Commit

Permalink
Merge pull request #19 from ndaidong/v3.0.1
Browse files Browse the repository at this point in the history
v3.0.1
  • Loading branch information
ndaidong authored Nov 24, 2021
2 parents ccdf0e8 + d9a9d4c commit b682389
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ coverage

yarn.lock
coverage.lcov
package-lock.json
package-lock.json

output.json
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.0.0",
"version": "3.0.1",
"name": "feed-reader",
"description": "Parse ATOM/RSS data from given feed url",
"homepage": "https://www.npmjs.com/package/feed-reader",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"jest": "^27.3.1",
"nock": "^13.1.4"
"nock": "^13.2.1"
},
"keywords": [
"extractor",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/retrieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = async (url) => {
}

const contentType = res.headers['content-type'] || ''
if (!contentType || !contentType.includes('/xml')) {
if (!contentType || !contentType.includes('xml')) {
error(`Got invalid content-type (${contentType}) from "${url}"`)
return null
}
Expand Down

0 comments on commit b682389

Please sign in to comment.