mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 22:56:46 +01:00
Fix typos in rejection messages
This commit is contained in:
parent
a95b48b70c
commit
a8eb26b672
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ define_rejection! {
|
|||
|
||||
define_rejection! {
|
||||
#[status = BAD_REQUEST]
|
||||
#[body = "Failed to parse the response body as JSON"]
|
||||
#[body = "Failed to parse the request body as JSON"]
|
||||
/// Rejection type for [`Json`](super::Json).
|
||||
pub struct InvalidJsonBody(BoxError);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ define_rejection! {
|
|||
|
||||
define_rejection! {
|
||||
#[status = BAD_REQUEST]
|
||||
#[body = "Response body didn't contain valid UTF-8"]
|
||||
#[body = "Request body didn't contain valid UTF-8"]
|
||||
/// Rejection type used when buffering the request into a [`String`] if the
|
||||
/// body doesn't contain valid UTF-8.
|
||||
pub struct InvalidUtf8(BoxError);
|
||||
|
|
Loading…
Reference in a new issue