From e7f4aefb72082dd13132e7228eaef1805051f61c Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Wed, 23 Mar 2022 15:31:45 -0500 Subject: [PATCH] allow for charset (#1354) --- backend/src/marketplace.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/marketplace.rs b/backend/src/marketplace.rs index aa5cf8d82..f616174d5 100644 --- a/backend/src/marketplace.rs +++ b/backend/src/marketplace.rs @@ -22,6 +22,8 @@ pub async fn get(#[arg] url: Url) -> Result { .remove("Content-Type") .as_ref() .and_then(|h| h.to_str().ok()) + .and_then(|h| h.split(";").next()) + .map(|h| h.trim()) { Some("application/json") => response .json()