From f8bf27d5b761c071e158158b3c140d59a75b8eb8 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Sun, 29 Aug 2021 00:40:32 +0300 Subject: migrate to actix-web v4.0-beta --- src/file_upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file_upload.rs') 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( -- cgit v1.2.3