fixed User-Agent-Header for newsfeed module (#2729)

This commit is contained in:
Karsten Hassel 2021-12-13 21:24:37 +01:00
parent 7bb217636e
commit 677dcb87ef
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ _This release is scheduled to be released on 2022-01-01._
- Fixed incorrect time zone correction of recurring full day events (#2632 and #2634).
- Fixed e2e tests by increasing testTimeout.
- Revert node-ical update due to missing luxon package.
- Fixed User-Agent-Header for newsfeed module (#2729).
## [2.17.1] - 2021-10-01

View File

@ -79,7 +79,7 @@ const NewsfeedFetcher = function (url, reloadInterval, encoding, logFeedWarnings
const nodeVersion = Number(process.version.match(/^v(\d+\.\d+)/)[1]);
const headers = {
"User-Agent": "Mozilla/5.0 (Node.js " + nodeVersion + ") MagicMirror/" + global.version + " (https://github.com/MichMich/MagicMirror/)",
"User-Agent": "Mozilla/5.0 (Node.js " + nodeVersion + ") MagicMirror/" + global.version,
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
Pragma: "no-cache"
};