From 51ab37707c8743d610776d01cff74e6aa12252e5 Mon Sep 17 00:00:00 2001 From: Joost van der Waal Date: Thu, 28 Mar 2024 15:23:36 +0100 Subject: [PATCH] fix(awsjson): URI Result not matched correctly --- .../aws-smithy-http-server/src/protocol/aws_json/router.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs index cf9308124d1..376c40de1f5 100644 --- a/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs +++ b/rust-runtime/aws-smithy-http-server/src/protocol/aws_json/router.rs @@ -86,8 +86,8 @@ where type Error = Error; fn match_route(&self, request: &http::Request) -> Result { - // The URI must be root, - if request.uri() != "/" { + // The URI path must be root, + if request.uri().path() != "/" { return Err(Error::NotRootUrl); }