We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a8b11 commit b86fdd0Copy full SHA for b86fdd0
modules/default/calendar/calendarfetcher.js
@@ -1,8 +1,8 @@
1
-const https = require("node:https");
2
const ical = require("node-ical");
3
const Log = require("logger");
4
const CalendarFetcherUtils = require("./calendarfetcherutils");
5
const { getUserAgent } = require("#server_functions");
+const { Agent } = require('undici');
6
7
const FIFTEEN_MINUTES = 15 * 60 * 1000;
8
const THIRTY_MINUTES = 30 * 60 * 1000;
@@ -74,8 +74,12 @@ class CalendarFetcher {
74
const options = { headers };
75
76
if (this.selfSignedCert) {
77
- options.agent = new https.Agent({ rejectUnauthorized: false });
78
- }
+ options.dispatcher = new Agent({
+ connect: {
79
+ rejectUnauthorized: false
80
+ }
81
+ });
82
83
84
if (this.auth) {
85
if (this.auth.method === "bearer") {
0 commit comments