fix: properly use HTTP_ACCEPT to detect image rather than SEC_FETCH_DEST
This commit is contained in:
parent
f2f8a235c8
commit
b8ae2c5617
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue