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:
parent
0616a68bd2
commit
1a034a1966
@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user