Skip to content

Commit

Permalink
Handle redirects in ReleasesHandler::stream_asset(). (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
korran authored Jan 26, 2024
1 parent d42c0a3 commit fbfb3a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/repos/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fbfb3a8

Please sign in to comment.