Skip to content

Commit

Permalink
Update proxy_request_service.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Jun 26, 2024
1 parent 4eaa3ab commit 4377fbb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/proxy_request_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ impl Service<Request<IncomingBody>> for ProxyRequestService {

async move { proxy_pass(req, url).await }.boxed()
}
_ => {
self.metrics.add_proxy_request("");

async move {
Ok(Response::builder()
.body(Full::new(Bytes::from("unsupported domain")))
.unwrap())
}
.boxed()
_ => async move {
Ok(Response::builder()
.body(Full::new(Bytes::from("unsupported domain")))
.unwrap())
}
.boxed(),
}
}
}
Expand Down

0 comments on commit 4377fbb

Please sign in to comment.