Skip to content

Commit

Permalink
Support downloading with the multi-host feature
Browse files Browse the repository at this point in the history
This fixes trying to download a remotely connected host, without setting
the host header the fsread1 request will go to the "shell host" and not
the currently viewed machine.

Closes: #773
  • Loading branch information
jelly authored and mvollmer committed Oct 11, 2024
1 parent ad83b9d commit 3b76e01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function downloadFile(currentPath: string, selected: FolderFileInfo) {
binary: "raw",
path: `${currentPath}/${selected.name}`,
superuser: "try",
host: cockpit.transport.host,
external: {
"content-disposition": `attachment; filename="${selected.name}"`,
"content-type": "application/octet-stream",
Expand Down

0 comments on commit 3b76e01

Please sign in to comment.