Forbid URIs with fragments

This commit is contained in:
Simon Bihel
2022-01-19 22:28:38 +00:00
parent 5c0b748373
commit 452bd2d9fb
3 changed files with 23 additions and 3 deletions

View File

@@ -47,6 +47,9 @@ impl IntoResponse for CustomError {
CustomError::BadRequest(_) => {
(StatusCode::BAD_REQUEST, self.to_string()).into_response()
}
CustomError::BadRequestRegister(e) => {
(StatusCode::BAD_REQUEST, Json::from(e)).into_response()
}
CustomError::BadRequestToken(e) => {
(StatusCode::BAD_REQUEST, Json::from(e)).into_response()
}