From fbfb3a80a69604251227b7c82a19e23a3cecad80 Mon Sep 17 00:00:00 2001 From: Kor Nielsen Date: Thu, 25 Jan 2024 23:00:04 -0800 Subject: [PATCH] Handle redirects in ReleasesHandler::stream_asset(). (#556) --- src/api/repos/releases.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/repos/releases.rs b/src/api/repos/releases.rs index 2caed308..ec9bfe70 100644 --- a/src/api/repos/releases.rs +++ b/src/api/repos/releases.rs @@ -193,6 +193,7 @@ impl<'octo, 'r> ReleasesHandler<'octo, 'r> { .header(http::header::ACCEPT, "application/octet-stream"); let request = self.parent.crab.build_request(builder, None::<&()>)?; let response = self.parent.crab.execute(request).await?; + let response = self.parent.crab.follow_location_to_data(response).await?; Ok(response .into_body() .map_err(|source| crate::error::Error::Hyper {