mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
fix: also fix #1331 for s3...
This commit is contained in:
parent
0814baa3cd
commit
dac5de8aad
@ -78,7 +78,7 @@ public class DownloadService extends HangarComponent {
|
||||
if (StringUtils.hasText(download.getExternalUrl())) {
|
||||
return ResponseEntity.status(301).header("Location", download.getExternalUrl()).build();
|
||||
} else if (this.fileService instanceof S3FileService){
|
||||
return ResponseEntity.status(301).header("Location", this.fileService.getVersionDownloadUrl(ownerName, project, versionString, platform, download.getFileName())).build();
|
||||
return ResponseEntity.status(301).header("Location", this.fileService.getVersionDownloadUrl(ownerName, projectTable.getName(), versionString, platform, download.getFileName())).build();
|
||||
} else {
|
||||
final String path = this.projectFiles.getVersionDir(ownerName, projectTable.getName(), versionString, platform, download.getFileName());
|
||||
if (!this.fileService.exists(path)) {
|
||||
|
Loading…
Reference in New Issue
Block a user