aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/SetupChecks/JavaScriptModules.php
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-09-16 15:33:48 +0200
committerGitHub <noreply@github.com>2024-09-16 15:33:48 +0200
commitcc9c61d580b6dc6f012a96ac898a8bb7a9798b52 (patch)
treeef4a3def77eabb7947a2fe2d276a06d7a21b4500 /apps/settings/lib/SetupChecks/JavaScriptModules.php
parentcfed24cb0254caf570b2a520979a83435a677cc8 (diff)
parent7fbd518452570e1e3c77815acaf6ab0242b00d08 (diff)
downloadnextcloud-server-cc9c61d580b6dc6f012a96ac898a8bb7a9798b52.tar.gz
nextcloud-server-cc9c61d580b6dc6f012a96ac898a8bb7a9798b52.zip
Merge pull request #47947 from nextcloud/feat/make-setup-check-trait-public
feat: Make `CheckServerResponseTrait` public and provide as `OCP\SetupCheck\CheckServerResponseTrait`
Diffstat (limited to 'apps/settings/lib/SetupChecks/JavaScriptModules.php')
-rw-r--r--apps/settings/lib/SetupChecks/JavaScriptModules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/JavaScriptModules.php b/apps/settings/lib/SetupChecks/JavaScriptModules.php
index ae19eacec7b..e09dc459dc8 100644
--- a/apps/settings/lib/SetupChecks/JavaScriptModules.php
+++ b/apps/settings/lib/SetupChecks/JavaScriptModules.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;
@@ -43,7 +44,7 @@ class JavaScriptModules implements ISetupCheck {
$testFile = $this->urlGenerator->linkTo('settings', 'js/esm-test.mjs');
$noResponse = true;
- foreach ($this->runHEAD($testFile) as $response) {
+ foreach ($this->runRequest('HEAD', $testFile) as $response) {
$noResponse = false;
if (preg_match('/(text|application)\/javascript/i', $response->getHeader('Content-Type'))) {
return SetupResult::success();