Skip to content

Commit

Permalink
use private extension to avoid safari decompression (#1122)
Browse files Browse the repository at this point in the history
Co-authored-by: Nassim Tabchiche <[email protected]>
  • Loading branch information
eric-intuitem and nas-tabchiche authored Dec 4, 2024
1 parent 520e6e2 commit 1790825
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions backend/.meta

This file was deleted.

2 changes: 0 additions & 2 deletions backend/ciso_assistant/.meta

This file was deleted.

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 1790825

Please sign in to comment.