mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-15 22:21:00 +00:00
Remove errors when our signature is rejected
This commit is contained in:
parent
4df14c7602
commit
959201fa97
2 changed files with 0 additions and 6 deletions
|
@ -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),
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue