Skip to content

Commit c2cf24c

Browse files
committed
fix: use OCP\Server
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
1 parent e29d41d commit c2cf24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/AppFramework/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public function getServerProtocol(): string {
660660

661661
if ($proto !== 'https' && $proto !== 'http') {
662662
// log unrecognized value so admin has a chance to fix it
663-
\OC::$server->get(LoggerInterface::class)->critical(
663+
\OCP\Server::get(LoggerInterface::class)->critical(
664664
'Server protocol is malformed [falling back to http] (check overwriteprotocol and/or X-Forwarded-Proto to remedy): ' . $proto,
665665
['app' => 'core']
666666
);

0 commit comments

Comments
 (0)