From a8eb26b672eabfec9172b3d79cd9b9eb65fb7d7c Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 5 Aug 2021 08:36:42 +0200 Subject: [PATCH] Fix typos in rejection messages --- src/extract/rejection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extract/rejection.rs b/src/extract/rejection.rs index 7474010b..ccd1f150 100644 --- a/src/extract/rejection.rs +++ b/src/extract/rejection.rs @@ -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);