Browse Source

Fix backup archive file's extension

pull/42/head
Kristijan Mitrovic 4 years ago
parent
commit
c8eb6bc4cc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bubble-server/src/main/java/bubble/resources/cloud/NetworkActionsResource.java

+ 1
- 1
bubble-server/src/main/java/bubble/resources/cloud/NetworkActionsResource.java View File

@@ -189,7 +189,7 @@ public class NetworkActionsResource {
if (backup == null) throw notFoundEx(backupId);

final var backupArchive = restoreService.buildRestorePackage(thisNetworkUuid, backup, passphrase);
final var outFileName = network.getNickname() + "." + backupId + (empty(passphrase) ? ".zip" : "");
final var outFileName = network.getNickname() + "." + backupId + ".tgz.enc";

return send(new FileSendableResource(backupArchive).setContentType(APPLICATION_OCTET_STREAM)
.setContentLength(backupArchive.length())


Loading…
Cancel
Save