This commit is contained in:
parent
552d07d44e
commit
9051bc2648
|
@ -1,5 +1,5 @@
|
|||
use actix_web::{error::ErrorInternalServerError, web, HttpRequest, HttpResponse, Result};
|
||||
use log::warn;
|
||||
use log::{error, warn};
|
||||
|
||||
use crate::app_state::AppState;
|
||||
use crate::handlers::serve_file::serve_file;
|
||||
|
@ -37,7 +37,10 @@ pub async fn proxy_handler(
|
|||
"aac" => "audio/aac",
|
||||
"m4a" => "audio/m4a",
|
||||
"flac" => "audio/flac",
|
||||
_ => return Err(ErrorInternalServerError("unsupported file format")),
|
||||
_ => {
|
||||
error!("unsupported file format");
|
||||
return Err(ErrorInternalServerError("unsupported file format"));
|
||||
},
|
||||
};
|
||||
|
||||
warn!("content_type: {}", content_type);
|
||||
|
|
Loading…
Reference in New Issue
Block a user