Skip to content

Commit

Permalink
use private extension to avoid safari decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-intuitem committed Dec 4, 2024
1 parent 427ceed commit 3ec60bf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/.meta
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CISO_ASSISTANT_VERSION=dev
CISO_ASSISTANT_BUILD=dev
CISO_ASSISTANT_VERSION=v1.9.18-38-g427ceedd
CISO_ASSISTANT_BUILD=427ceedd
4 changes: 2 additions & 2 deletions backend/ciso_assistant/.meta
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CISO_ASSISTANT_VERSION=dev
CISO_ASSISTANT_BUILD=dev
CISO_ASSISTANT_VERSION=v1.9.18-38-g427ceedd
CISO_ASSISTANT_BUILD=427ceedd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$: uploadButtonStyles = file ? '' : 'chip-disabled';
const authorizedExtensions = ['.json', '.gz'];
const authorizedExtensions = ['.bak'];
const user = $page.data.user;
const canBackup: boolean = Object.hasOwn(user.permissions, 'backup');
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const GET: RequestHandler = async ({ fetch }) => {
error(400, 'Error fetching the dump file');
}

const fileName = `ciso-assistant-db-${new Date().toISOString()}.json.gz`;
const fileName = `ciso-assistant-db-${new Date().toISOString()}.bak`;

return new Response(await res.blob(), {
headers: {
Expand Down

0 comments on commit 3ec60bf

Please sign in to comment.