From 959201fa9718a1261e8b501292e543b4d1f31fda Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 17 Nov 2022 19:28:02 -0600 Subject: [PATCH] Remove errors when our signature is rejected --- src/error.rs | 3 --- src/requests.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index eb602b0..1c1c4d1 100644 --- a/src/error.rs +++ b/src/error.rs @@ -100,9 +100,6 @@ pub(crate) enum ErrorKind { #[error("Couldn't sign digest")] Signature(#[from] signature::Error), - #[error("Server {0} failed to validate our signature")] - SignedDelivery(String), - #[error("Couldn't parse the signature header")] HeaderValidation(#[from] actix_web::http::header::InvalidHeaderValue), diff --git a/src/requests.rs b/src/requests.rs index 12895e1..c278d60 100644 --- a/src/requests.rs +++ b/src/requests.rs @@ -224,9 +224,6 @@ impl Requests { if let Ok(bytes) = res.body().await { if let Ok(s) = String::from_utf8(bytes.as_ref().to_vec()) { - if s.to_lowercase().contains("http signature") { - return Err(ErrorKind::SignedDelivery(parsed_url.to_string()).into()); - } if !s.is_empty() { tracing::warn!("Response from {}, {}", parsed_url, s); }