log
All checks were successful
deploy / deploy (push) Successful in 1m2s

This commit is contained in:
Untone 2024-10-22 21:19:40 +03:00
parent 85d07fd98c
commit c7f3a4ef42

View File

@ -12,7 +12,7 @@ pub async fn proxy_handler(
requested_res: web::Path<String>, requested_res: web::Path<String>,
state: web::Data<AppState>, state: web::Data<AppState>,
) -> Result<HttpResponse, actix_web::Error> { ) -> Result<HttpResponse, actix_web::Error> {
warn!("\nGET {}", requested_res); warn!("\t>>>\tGET {}", requested_res);
let normalized_path = match requested_res.ends_with("/webp") { let normalized_path = match requested_res.ends_with("/webp") {
true => requested_res.replace("/webp", ""), true => requested_res.replace("/webp", ""),
false => requested_res.to_string(), false => requested_res.to_string(),