Compare commits

...

2 commits

Author SHA1 Message Date
fenris 26a01f096e [fix] source:ics_feed:basic auth 2026-05-19 23:14:10 +02:00
fenris b24e776a06 [fix] conf 2026-05-19 23:13:35 +02:00
2 changed files with 14 additions and 2 deletions

View file

@ -545,7 +545,7 @@ namespace _munin.conf
}
else
{
return (conf_raw.content as type_conf_v6);
return (conf_raw.content as type_conf_v7);
}
}

View file

@ -48,7 +48,19 @@ namespace _munin.sources.ics_feed
"version": "HTTP/2",
"method": lib_plankton.http.enum_method.get,
"query": ("?" + url.query),
"headers": {},
"headers": (
((url.username !== null) && (url.password !== null))
?
{
/**
* @todo use lib_plankton.base64
*/
"Authorization": ("Basic " + Buffer.from(url.username + ":" + url.password).toString("base64")),
}
:
{
}
),
"body": null,
};
const http_response : lib_plankton.http.type_response = await lib_plankton.http.call(http_request);