1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(server): headers already send (#10289)

This commit is contained in:
Jason Rasmussen 2024-06-13 14:30:34 -04:00 committed by GitHub
parent c6ab047167
commit 77bd162872
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,7 +68,7 @@ export const sendFile = async (
return await _sendFile(file.path, options);
} catch (error: Error | any) {
// ignore client-closed connection
if (isConnectionAborted(error)) {
if (isConnectionAborted(error) || res.headersSent) {
return;
}