mirror of
https://github.com/immich-app/immich.git
synced 2025-12-06 09:13:13 +03:00
fix(server): properly handle HEAD requests to SSR paths (#23788)
This commit is contained in:
@@ -65,9 +65,10 @@ export class ApiService {
|
||||
}
|
||||
|
||||
return async (request: Request, res: Response, next: NextFunction) => {
|
||||
const method = request.method.toLowerCase();
|
||||
if (
|
||||
request.url.startsWith('/api') ||
|
||||
request.method.toLowerCase() !== 'get' ||
|
||||
(method !== 'get' && method !== 'head') ||
|
||||
excludePaths.some((item) => request.url.startsWith(item))
|
||||
) {
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user