Skip to content

Commit

Permalink
Setup correct content type for response carrying logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 6, 2024
1 parent 49fab1d commit 3887cf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rust/agama-server/src/manager/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,10 @@ async fn download_logs() -> impl IntoResponse {

// See RFC2046, RFC2616 and
// https://www.iana.org/assignments/media-types/media-types.xhtml
// or /etc/mime.types
headers.insert(
header::CONTENT_TYPE,
HeaderValue::from_static("application/gzip"),
HeaderValue::from_static("application/x-compressed-tar"),
);
headers.insert(
header::CONTENT_DISPOSITION,
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ROOT = {
installation: "/installation",
installationProgress: "/installation/progress",
installationFinished: "/installation/finished",
logs: "/api/manager/logs.tar.gz",
logs: "/api/manager/logs/store",
};

const USER = {
Expand Down

0 comments on commit 3887cf3

Please sign in to comment.