aboutsummaryrefslogtreecommitdiffstats
path: root/src/file_upload.rs
diff options
context:
space:
mode:
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 3ef3a7e..b79e8ff 100644
--- a/src/file_upload.rs
+++ b/src/file_upload.rs
@@ -197,7 +197,7 @@ pub fn upload_file(
.then(move |e| match e {
Ok(_) => future::ok(
HttpResponse::SeeOther()
- .header(header::LOCATION, return_path.to_string())
+ .header(header::LOCATION, return_path)
.finish(),
),
Err(e) => create_error_response(