Skip to content
Snippets Groups Projects

Drupal 10 compatibility: see #3290143

3 files
+ 8
7
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -6,6 +6,7 @@ namespace Drupal\trusted_reverse_proxy\StackMiddleware;
use Drupal\Core\Site\Settings;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
/**
@@ -43,7 +44,7 @@ class TrustedReverseProxyMiddleware implements HttpKernelInterface {
/**
* {@inheritDoc}
*/
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE): Response {
if (
// Reverse proxy is not explicitly disabled (is unset/NULL otherwise)
$this->settings->get('reverse_proxy') !== FALSE
Loading