From a4a0864f3c63b83bb3cdb120d0a8f4a567b90971 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Fri, 9 Sep 2022 09:58:18 -0400 Subject: [PATCH] don't set json content-type/accept headers for download requests the response type is NOT json, this was just wrong --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ca569b3..6a554c3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -548,8 +548,9 @@ async fn download_versions( debug!(?url, "downloading..."); let req = http_client .get(url) - .header(CONTENT_TYPE, "application/json") - .header(ACCEPT, "application/json"); + //.header(CONTENT_TYPE, "application/json") + //.header(ACCEPT, "application/json") + ; let req = if let Some(token) = config.registry.auth_token.as_deref() { req.header(AUTHORIZATION, token)