forked from neri/datatrash
remove content disposition from index.html
This commit is contained in:
parent
941c07bdaf
commit
594ca9d253
|
@ -25,4 +25,3 @@ impl FromStr for FileKind {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue