Compare commits
2 commits
859d3247d4
...
26a01f096e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26a01f096e | ||
|
|
b24e776a06 |
|
|
@ -545,7 +545,7 @@ namespace _munin.conf
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return (conf_raw.content as type_conf_v6);
|
return (conf_raw.content as type_conf_v7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,19 @@ namespace _munin.sources.ics_feed
|
||||||
"version": "HTTP/2",
|
"version": "HTTP/2",
|
||||||
"method": lib_plankton.http.enum_method.get,
|
"method": lib_plankton.http.enum_method.get,
|
||||||
"query": ("?" + url.query),
|
"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,
|
"body": null,
|
||||||
};
|
};
|
||||||
const http_response : lib_plankton.http.type_response = await lib_plankton.http.call(http_request);
|
const http_response : lib_plankton.http.type_response = await lib_plankton.http.call(http_request);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue