mirror of https://github.com/rwf2/Rocket.git
parent
0101d8bf3a
commit
4be75accf7
|
@ -58,7 +58,7 @@ impl hyper::Handler for Rocket {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("Bad incoming request: {}", e);
|
error!("Bad incoming request: {}", e);
|
||||||
let dummy = Request::new(self, Method::Get, Uri::new("<unknown>"));
|
let dummy = Request::new(self, Method::Get, Uri::new("<unknown>"));
|
||||||
let r = self.handle_error(Status::InternalServerError, &dummy);
|
let r = self.handle_error(Status::BadRequest, &dummy);
|
||||||
return self.issue_response(r, res);
|
return self.issue_response(r, res);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue