aboutsummaryrefslogtreecommitdiffstats
path: root/src/file_upload.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2020-02-27 16:09:58 +0000
committerGitHub <noreply@github.com>2020-02-27 16:09:58 +0000
commit52ddbbd01addc3b18b6cef90e4a9282f5945cd43 (patch)
treed2a7c73e67bc1cc973151c98f32b4d26de9151ef /src/file_upload.rs
parentMerge pull request #261 from svenstaro/dependabot/cargo/hex-0.4.2 (diff)
parentFixed clippy warnings (diff)
downloadminiserve-52ddbbd01addc3b18b6cef90e4a9282f5945cd43.tar.gz
miniserve-52ddbbd01addc3b18b6cef90e4a9282f5945cd43.zip
Merge pull request #239 from DamianX/FixClippyWarnings
Fixed clippy warnings
Diffstat (limited to 'src/file_upload.rs')
-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 900792f..af4fcf2 100644
--- a/src/file_upload.rs
+++ b/src/file_upload.rs
@@ -201,7 +201,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(