Fix warnings

This commit is contained in:
Dominik Werder
2021-11-05 15:53:07 +01:00
parent 96e0473392
commit daf3f6c14c
8 changed files with 27 additions and 15 deletions

View File

@@ -83,7 +83,6 @@ pub async fn channel_search(req: Request<Body>, proxy_config: &ProxyConfig) -> R
.await?;
Ok(ret)
} else {
info!("bad accept: {:?}", head.headers.get(header::ACCEPT));
Ok(response(StatusCode::NOT_ACCEPTABLE).body(Body::from(format!("{:?}", proxy_config.name)))?)
}
}