1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

feedparser Add correct accept headers

to fix #489
This commit is contained in:
Dave Conway-Jones 2018-09-14 16:10:53 +01:00
parent a5f29e3445
commit 15cab5a381
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ module.exports = function(RED) {
var req = request(node.url, {timeout:10000, pool:false}); var req = request(node.url, {timeout:10000, pool:false});
//req.setMaxListeners(50); //req.setMaxListeners(50);
req.setHeader('user-agent', 'Mozilla/5.0 (Node-RED)'); req.setHeader('user-agent', 'Mozilla/5.0 (Node-RED)');
req.setHeader('accept', 'text/html,application/xhtml+xml'); req.setHeader('accept', 'application/rss+xml,text/html,application/xhtml+xml');
var feedparser = new FeedParser(); var feedparser = new FeedParser();

View File

@ -1,10 +1,10 @@
{ {
"name": "node-red-node-feedparser", "name": "node-red-node-feedparser",
"version": "0.1.13", "version": "0.1.14",
"description": "A Node-RED node to get RSS Atom feeds.", "description": "A Node-RED node to get RSS Atom feeds.",
"dependencies": { "dependencies": {
"feedparser": "^2.2.9", "feedparser": "^2.2.9",
"request": "^2.83.0" "request": "^2.88.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",