aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-09-13 14:18:25 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-16 14:58:21 +0200
commit7fbd518452570e1e3c77815acaf6ab0242b00d08 (patch)
tree76330afc5e2b841a2155778954f6931d5fe8d022 /apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php
parentff0cab5956c289bad60db54716b148c8879566a4 (diff)
downloadnextcloud-server-7fbd518452570e1e3c77815acaf6ab0242b00d08.tar.gz
nextcloud-server-7fbd518452570e1e3c77815acaf6ab0242b00d08.zip
feat: Make `CheckServerResponseTrait` public and provide as `OCP\SetupCheck\CheckServerResponseTrait`feat/make-setup-check-trait-public
This trait is used by other apps for creating setup checks, so we should provide it instead apps using private API. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php')
-rw-r--r--apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php b/apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php
index 85cbe872339..dcfc40192b9 100644
--- a/apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php
+++ b/apps/settings/lib/SetupChecks/JavaScriptSourceMaps.php
@@ -12,6 +12,7 @@ use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IL10N;
use OCP\IURLGenerator;
+use OCP\SetupCheck\CheckServerResponseTrait;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
use Psr\Log\LoggerInterface;
@@ -42,7 +43,7 @@ class JavaScriptSourceMaps implements ISetupCheck {
public function run(): SetupResult {
$testFile = $this->urlGenerator->linkTo('settings', 'js/map-test.js.map');
- foreach ($this->runHEAD($testFile) as $response) {
+ foreach ($this->runRequest('HEAD', $testFile) as $response) {
return SetupResult::success();
}