From 5cd78085d24ac96f8faccb412bffdf441ed23de3 Mon Sep 17 00:00:00 2001 From: Jorge Hermo Date: Tue, 5 Nov 2024 18:12:55 +0100 Subject: [PATCH] feat: use serde_json::to_vec --- core/src/services/gcs/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/services/gcs/core.rs b/core/src/services/gcs/core.rs index b00c0e19cae1..86d73bc2e528 100644 --- a/core/src/services/gcs/core.rs +++ b/core/src/services/gcs/core.rs @@ -288,7 +288,7 @@ impl GcsCore { "application/json; charset=UTF-8".parse().unwrap(), ) .content( - serde_json::to_string(&request_metadata) + serde_json::to_vec(&request_metadata) .expect("metadata serialization should success"), ); multipart = multipart.part(metadata_part);