From c32cbbe20ed5bc415d0369b3bcf65a783aea3cdd Mon Sep 17 00:00:00 2001 From: tu6ge Date: Mon, 8 Jul 2024 09:09:30 +0800 Subject: [PATCH] style --- src/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.rs b/src/object.rs index 10913f6..8e416d4 100644 --- a/src/object.rs +++ b/src/object.rs @@ -183,7 +183,7 @@ impl Object { let mut header_map = client.authorization(method, resource)?; if content.len() == 0 { - header_map.insert("Content-Length", 0.into()); + header_map.insert(CONTENT_LENGTH, 0.into()); } let response = reqwest::Client::new()