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:
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