fix(feishu): 修复内容类型处理,确保返回字符串格式
This commit is contained in:
parent
447cb2eee5
commit
ef80ae27ac
@ -360,9 +360,10 @@ impl FeishuChannel {
|
|||||||
.headers()
|
.headers()
|
||||||
.get("content-type")
|
.get("content-type")
|
||||||
.and_then(|v| v.to_str().ok())
|
.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/png" => "png",
|
||||||
"image/gif" => "gif",
|
"image/gif" => "gif",
|
||||||
"image/webp" => "webp",
|
"image/webp" => "webp",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user