forked from mirrors/relay
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")]
|
#[error("Couldn't sign digest")]
|
||||||
Signature(#[from] signature::Error),
|
Signature(#[from] signature::Error),
|
||||||
|
|
||||||
#[error("Server {0} failed to validate our signature")]
|
|
||||||
SignedDelivery(String),
|
|
||||||
|
|
||||||
#[error("Couldn't parse the signature header")]
|
#[error("Couldn't parse the signature header")]
|
||||||
HeaderValidation(#[from] actix_web::http::header::InvalidHeaderValue),
|
HeaderValidation(#[from] actix_web::http::header::InvalidHeaderValue),
|
||||||
|
|
||||||
|
|
|
@ -224,9 +224,6 @@ impl Requests {
|
||||||
|
|
||||||
if let Ok(bytes) = res.body().await {
|
if let Ok(bytes) = res.body().await {
|
||||||
if let Ok(s) = String::from_utf8(bytes.as_ref().to_vec()) {
|
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() {
|
if !s.is_empty() {
|
||||||
tracing::warn!("Response from {}, {}", parsed_url, s);
|
tracing::warn!("Response from {}, {}", parsed_url, s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue