mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Merge pull request #2538 from codac/master
This commit is contained in:
commit
fd1913a72e
@ -32,6 +32,7 @@ _This release is scheduled to be released on 2021-04-01._
|
||||
- Fix decimalSymbol in the forecast 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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user