remove content disposition from index.html

This commit is contained in:
neri 2020-07-14 16:03:34 +02:00
parent 941c07bdaf
commit 594ca9d253
2 changed files with 3 additions and 2 deletions

View File

@ -25,4 +25,3 @@ impl FromStr for FileKind {
}
}
}

View File

@ -28,7 +28,9 @@ const UPLOAD_HTML: &str = include_str!("../template/upload.html");
const VIEW_HTML: &str = include_str!("../template/view.html");
async fn index() -> Result<NamedFile, Error> {
Ok(NamedFile::open("static/index.html").map_err(|_| error::ErrorNotFound(""))?)
Ok(NamedFile::open("static/index.html")
.map_err(|_| error::ErrorNotFound(""))?
.disable_content_disposition())
}
async fn upload(