mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-25 09:15:56 +00:00
fix(server): headers already send (#10289)
This commit is contained in:
parent
c6ab047167
commit
77bd162872
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue