diff --git a/www/router.php b/www/router.php index 641ec70..bc62715 100644 --- a/www/router.php +++ b/www/router.php @@ -74,7 +74,7 @@ if(preg_match('/^\/api\/admin/', $SURI)) { echo $twig->render('upload.html'); } -} elseif($_SERVER['HTTP_SEC_FETCH_DEST'] == 'image') { +} elseif(preg_match('/^\s*image/', $_SERVER['HTTP_ACCEPT'])) { header('Location: /raw' . $SURI); exit(0); } elseif(true) {