global-functions: rename $FetchUserAgent -> $FetchUserAgentStr

... to make sure the function does not clash with the variable we had before,
as this causes issue with news and changes notification.
This commit is contained in:
Christian Hesse 2024-03-29 11:09:22 +01:00
parent bbdc9c65f5
commit 4df1468e25
4 changed files with 13 additions and 13 deletions

View file

@ -19,7 +19,7 @@
:global CertificateAvailable;
:global EitherOr;
:global FetchUserAgent;
:global FetchUserAgentStr;
:global LogPrint;
:global LogPrintOnce;
:global ScriptLock;
@ -65,7 +65,7 @@
:if ($Data = false) do={
:do {
:set Data ([ /tool/fetch check-certificate=$CheckCertificate output=user \
http-header-field=({ [ $FetchUserAgent $ScriptName ] }) ($List->"url") as-value ]->"data");
http-header-field=({ [ $FetchUserAgentStr $ScriptName ] }) ($List->"url") as-value ]->"data");
} on-error={
:if ($I < 5) do={
$LogPrint debug $ScriptName ("Failed downloading, " . $I . ". try: " . $List->"url");