Validating Host headers in RPC requests (#1658)
* Validating Host headers in RPC requests * Fixing convention [ci skip] * Remove extra indent. [ci:skip]
This commit is contained in:
@@ -129,6 +129,7 @@ impl Server {
|
||||
special.insert(router::SpecialEndpoint::Utils, apps::utils());
|
||||
special
|
||||
});
|
||||
let bind_address = format!("{}", addr);
|
||||
|
||||
try!(hyper::Server::http(addr))
|
||||
.handle(move |_| router::Router::new(
|
||||
@@ -136,6 +137,7 @@ impl Server {
|
||||
endpoints.clone(),
|
||||
special.clone(),
|
||||
authorization.clone(),
|
||||
bind_address.clone(),
|
||||
))
|
||||
.map(|(l, srv)| {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user