From 1a034a19661d88d22379c0f13bf6447a9247688b Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Thu, 15 Dec 2022 21:50:22 +0100 Subject: [PATCH] refector: remove unnecessary content type header --- backend/src/file/file.controller.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/src/file/file.controller.ts b/backend/src/file/file.controller.ts index ce50dc88..e3bf0b38 100644 --- a/backend/src/file/file.controller.ts +++ b/backend/src/file/file.controller.ts @@ -45,7 +45,6 @@ export class FileController { @Get(":fileId/download") @UseGuards(ShareSecurityGuard) async getFileDownloadUrl( - @Res({ passthrough: true }) res: Response, @Param("shareId") shareId: string, @Param("fileId") fileId: string ) { @@ -57,16 +56,11 @@ export class FileController { @Get("zip/download") @UseGuards(ShareSecurityGuard) async getZipArchiveDownloadURL( - @Res({ passthrough: true }) res: Response, @Param("shareId") shareId: string, @Param("fileId") fileId: string ) { const url = this.fileService.getFileDownloadUrl(shareId, fileId); - res.set({ - "Content-Type": "application/zip", - }); - return { url }; }