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()