High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): headers already send (#10289)
Jason Rasmussen77bd162872ed
diff --git a/server/src/utils/file.ts b/server/src/utils/file.tsindex c70352af84..578aa66246 100644--- a/server/src/utils/file.ts+++ b/server/src/utils/file.ts@@ -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;}