diff --git a/src/channels/feishu.rs b/src/channels/feishu.rs index 651d7a5..50c2721 100644 --- a/src/channels/feishu.rs +++ b/src/channels/feishu.rs @@ -360,9 +360,10 @@ impl FeishuChannel { .headers() .get("content-type") .and_then(|v| v.to_str().ok()) - .unwrap_or("image/jpeg"); + .unwrap_or("image/jpeg") + .to_string(); - let ext = match content_type { + let ext = match content_type.as_str() { "image/png" => "png", "image/gif" => "gif", "image/webp" => "webp",