lofidsxz
All checks were successful
deploy / deploy (push) Successful in 1m0s

This commit is contained in:
Untone 2024-10-22 20:52:29 +03:00
parent 525dcdd54d
commit 879b406211

View File

@ -12,13 +12,12 @@ pub async fn proxy_handler(
requested_res: web::Path<String>,
state: web::Data<AppState>,
) -> Result<HttpResponse, actix_web::Error> {
warn!("\nGET {}", requested_res);
let normalized_path = match requested_res.ends_with("/webp") {
true => requested_res.replace("/webp", ""),
false => requested_res.to_string(),
};
warn!("normalized_path: {}", normalized_path);
// парсим GET запрос
if let Some((base_filename, requested_width, extension)) = parse_image_request(&normalized_path)
{