Update download result headers

This commit is contained in:
2023-08-08 19:30:30 +02:00
parent 3110d8bc7d
commit b19c6f14ea
2 changed files with 29 additions and 25 deletions

View File

@@ -57,6 +57,10 @@ pub async fn download(
header::CONTENT_LENGTH,
format!("{file_size}")
),
(
header::HeaderName::from_static("x-filename"),
encoder.encode(filename_ascii),
),
(
header::HeaderName::from_static("x-filename-b64"),
encoder.encode(filename),