mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-07 08:34:32 +02:00
global-functions: $ScriptInstallUpdate: http-header-field expects an array
This commit is contained in:
parent
da0a37802d
commit
1b00f93fc6
1 changed files with 4 additions and 4 deletions
|
@ -905,8 +905,8 @@
|
||||||
:local Url ($BaseUrl . $ScriptVal->"name" . ".rsc" . $UrlSuffix);
|
:local Url ($BaseUrl . $ScriptVal->"name" . ".rsc" . $UrlSuffix);
|
||||||
|
|
||||||
$LogPrintExit2 debug $0 ("Fetching script '" . $ScriptVal->"name" . "' from url: " . $Url) false;
|
$LogPrintExit2 debug $0 ("Fetching script '" . $ScriptVal->"name" . "' from url: " . $Url) false;
|
||||||
:local Result [ /tool/fetch check-certificate=yes-without-crl http-header-field=$FetchUserAgent \
|
:local Result [ /tool/fetch check-certificate=yes-without-crl \
|
||||||
$Url output=user as-value ];
|
http-header-field=({ $FetchUserAgent }) $Url output=user as-value ];
|
||||||
:if ($Result->"status" = "finished") do={
|
:if ($Result->"status" = "finished") do={
|
||||||
:set SourceNew ($Result->"data");
|
:set SourceNew ($Result->"data");
|
||||||
}
|
}
|
||||||
|
@ -989,8 +989,8 @@
|
||||||
:do {
|
:do {
|
||||||
:local Url ($ScriptUpdatesBaseUrl . "news-and-changes.rsc" . $ScriptUpdatesUrlSuffix);
|
:local Url ($ScriptUpdatesBaseUrl . "news-and-changes.rsc" . $ScriptUpdatesUrlSuffix);
|
||||||
$LogPrintExit2 debug $0 ("Fetching news, changes and migration: " . $Url) false;
|
$LogPrintExit2 debug $0 ("Fetching news, changes and migration: " . $Url) false;
|
||||||
:local Result [ /tool/fetch check-certificate=yes-without-crl http-header-field=$FetchUserAgent \
|
:local Result [ /tool/fetch check-certificate=yes-without-crl \
|
||||||
$Url output=user as-value ];
|
http-header-field=({ $FetchUserAgent }) $Url output=user as-value ];
|
||||||
:if ($Result->"status" = "finished") do={
|
:if ($Result->"status" = "finished") do={
|
||||||
:set ChangeLogCode ($Result->"data");
|
:set ChangeLogCode ($Result->"data");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue