From 5d99baac21bf06bb923b29fd813de9af40d7cf61 Mon Sep 17 00:00:00 2001 From: config Date: Thu, 15 Apr 2021 14:51:33 +0200 Subject: [PATCH] Fixing fetch option httpsAgent to agent in calendar module (#466) --- CHANGELOG.md | 1 + modules/default/calendar/calendarfetcher.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64e0824a..c48d4cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ _This release is scheduled to be released on 2021-04-01._ - Fix decimalSymbol in the forcast part of the new weather module #2530 - Fix wrong treatment of `appendLocationNameToHeader` when using `ukmetofficedatahub` - Fix alert not recognizing multiple alerts (#2522) +- Fix fetch option httpsAgent to agent in calendar module (#466) ## [2.15.0] - 2021-04-01 diff --git a/modules/default/calendar/calendarfetcher.js b/modules/default/calendar/calendarfetcher.js index 9673fa31..855257d4 100644 --- a/modules/default/calendar/calendarfetcher.js +++ b/modules/default/calendar/calendarfetcher.js @@ -52,13 +52,13 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn if (auth.method === "bearer") { headers.Authorization = "Bearer " + auth.pass; } else if (auth.method === "digest") { - fetcher = new digest(auth.user, auth.pass).fetch(url, { headers: headers, httpsAgent: httpsAgent }); + fetcher = new digest(auth.user, auth.pass).fetch(url, { headers: headers, agent: httpsAgent }); } else { headers.Authorization = "Basic " + Buffer.from(auth.user + ":" + auth.pass).toString("base64"); } } if (fetcher === null) { - fetcher = fetch(url, { headers: headers, httpsAgent: httpsAgent }); + fetcher = fetch(url, { headers: headers, agent: httpsAgent }); } fetcher