mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-04 10:14:51 +02:00
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:
parent
bbdc9c65f5
commit
4df1468e25
4 changed files with 13 additions and 13 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue