This commit is contained in:
parent
525dcdd54d
commit
879b406211
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user