aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-10-10 17:38:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-10-17 14:05:03 +0200
commit1b00f93fc6af2c5f94f9b32927bf278fb55713d5 (patch)
treeb743bcaff582ec3527177a5aca9120ebee52e3d8 /global-functions.rsc
parentda0a37802df19eb5ae16b07fd2603f66d31c8f46 (diff)
global-functions: $ScriptInstallUpdate: http-header-field expects an array
Diffstat (limited to 'global-functions.rsc')
-rw-r--r--global-functions.rsc8
1 files changed, 4 insertions, 4 deletions
diff --git a/global-functions.rsc b/global-functions.rsc
index b798047..e084171 100644
--- a/global-functions.rsc
+++ b/global-functions.rsc
@@ -905,8 +905,8 @@
:local Url ($BaseUrl . $ScriptVal->"name" . ".rsc" . $UrlSuffix);
$LogPrintExit2 debug $0 ("Fetching script '" . $ScriptVal->"name" . "' from url: " . $Url) false;
- :local Result [ /tool/fetch check-certificate=yes-without-crl http-header-field=$FetchUserAgent \
- $Url output=user as-value ];
+ :local Result [ /tool/fetch check-certificate=yes-without-crl \
+ http-header-field=({ $FetchUserAgent }) $Url output=user as-value ];
:if ($Result->"status" = "finished") do={
:set SourceNew ($Result->"data");
}
@@ -989,8 +989,8 @@
:do {
:local Url ($ScriptUpdatesBaseUrl . "news-and-changes.rsc" . $ScriptUpdatesUrlSuffix);
$LogPrintExit2 debug $0 ("Fetching news, changes and migration: " . $Url) false;
- :local Result [ /tool/fetch check-certificate=yes-without-crl http-header-field=$FetchUserAgent \
- $Url output=user as-value ];
+ :local Result [ /tool/fetch check-certificate=yes-without-crl \
+ http-header-field=({ $FetchUserAgent }) $Url output=user as-value ];
:if ($Result->"status" = "finished") do={
:set ChangeLogCode ($Result->"data");
}