aboutsummaryrefslogtreecommitdiffstats
path: root/src/file_upload.rs
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2021-08-28 21:40:32 +0000
committerAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2021-08-28 21:40:32 +0000
commitf8bf27d5b761c071e158158b3c140d59a75b8eb8 (patch)
treec9da0a390923673ccb007488a35cb5baaa4ffca2 /src/file_upload.rs
parentAdd CHANGELOG entry for backslash encoding contribution (diff)
downloadminiserve-f8bf27d5b761c071e158158b3c140d59a75b8eb8.tar.gz
miniserve-f8bf27d5b761c071e158158b3c140d59a75b8eb8.zip
migrate to actix-web v4.0-beta
Diffstat (limited to '')
-rw-r--r--src/file_upload.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_upload.rs b/src/file_upload.rs
index 3edb09e..5faa67f 100644
--- a/src/file_upload.rs
+++ b/src/file_upload.rs
@@ -205,7 +205,7 @@ pub fn upload_file(
.then(move |e| match e {
Ok(_) => future::ok(
HttpResponse::SeeOther()
- .header(header::LOCATION, return_path)
+ .append_header((header::LOCATION, return_path))
.finish(),
),
Err(e) => create_error_response(