Compare commits
1 Commits
215bca866f
...
b4452fff37
Author | SHA1 | Date |
---|---|---|
neri | b4452fff37 |
|
@ -81,7 +81,6 @@ async fn main() -> std::io::Result<()> {
|
|||
let http_server = HttpServer::new({
|
||||
move || {
|
||||
App::new()
|
||||
.wrap(Logger::new(r#"%{r}a "%r" =%s %bbytes %Tsec"#))
|
||||
.wrap(
|
||||
DefaultHeaders::new()
|
||||
.add(DEFAULT_CONTENT_SECURITY_POLICY)
|
||||
|
|
|
@ -49,8 +49,7 @@ pub async fn upload(
|
|||
insert_file_metadata(&file_id, file_name, &file_path, &upload_config, db).await?;
|
||||
|
||||
log::info!(
|
||||
"{} create new file {} (valid_till: {}, content_type: {}, delete_on_download: {})",
|
||||
req.connection_info().realip_remote_addr().unwrap_or("-"),
|
||||
"create new file {} (valid_till: {}, content_type: {}, delete_on_download: {})",
|
||||
file_id,
|
||||
upload_config.valid_till,
|
||||
upload_config.content_type,
|
||||
|
|
Loading…
Reference in New Issue