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 295c670b27..c586165816 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); }