1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00: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;
}