Skip to content

Commit

Permalink
fix: add a user agent for rss (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya authored Aug 10, 2024
1 parent ad355c5 commit edc5054
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/models/FeedReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ class FeedReader {
maxHistory: this.options.maxHistory,
interval: this.options.interval,
forceInterval: true,
requestOpts: {
headers: {
'User-Agent': 'flood',
},
},
});

this.reader.on('items', this.handleFeedItems);
Expand Down

0 comments on commit edc5054

Please sign in to comment.