v2 #2
1 changed files with 1 additions and 1 deletions
fix: 200OK is not an error
commit
03a207d32a
|
|
@ -279,7 +279,7 @@ impl Client {
|
||||||
.body_mut()
|
.body_mut()
|
||||||
.read_to_end(&mut body)
|
.read_to_end(&mut body)
|
||||||
.context("reading response body")?;
|
.context("reading response body")?;
|
||||||
if status == StatusCode::OK {
|
if status != StatusCode::OK {
|
||||||
bail!(
|
bail!(
|
||||||
"Failed downloading the cache (status {status}): {:?}",
|
"Failed downloading the cache (status {status}): {:?}",
|
||||||
str::from_utf8(&body)
|
str::from_utf8(&body)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue