This commit is contained in:
JMARyA 2024-04-13 21:09:35 +02:00
parent a78b710d66
commit 569665a5a2
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -128,6 +128,7 @@ impl Mirror {
let status_code = response.status();
let body_bytes = response.bytes().await.ok()?;
if status_code.is_success() {
log::debug!("Writing request to {save:?}");
std::fs::write(save, &body_bytes).unwrap();
}
let mut http_response = HttpResponse::build(