1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-05 15:30:14 +01:00

refector: remove unnecessary content type header

This commit is contained in:
Elias Schneider 2022-12-15 21:50:22 +01:00
parent 0616a68bd2
commit 1a034a1966

View File

@ -45,7 +45,6 @@ export class FileController {
@Get(":fileId/download") @Get(":fileId/download")
@UseGuards(ShareSecurityGuard) @UseGuards(ShareSecurityGuard)
async getFileDownloadUrl( async getFileDownloadUrl(
@Res({ passthrough: true }) res: Response,
@Param("shareId") shareId: string, @Param("shareId") shareId: string,
@Param("fileId") fileId: string @Param("fileId") fileId: string
) { ) {
@ -57,16 +56,11 @@ export class FileController {
@Get("zip/download") @Get("zip/download")
@UseGuards(ShareSecurityGuard) @UseGuards(ShareSecurityGuard)
async getZipArchiveDownloadURL( async getZipArchiveDownloadURL(
@Res({ passthrough: true }) res: Response,
@Param("shareId") shareId: string, @Param("shareId") shareId: string,
@Param("fileId") fileId: string @Param("fileId") fileId: string
) { ) {
const url = this.fileService.getFileDownloadUrl(shareId, fileId); const url = this.fileService.getFileDownloadUrl(shareId, fileId);
res.set({
"Content-Type": "application/zip",
});
return { url }; return { url };
} }