Fix URI captures matching empty segments (#264)

It was never the intention that `/:key` should match `/`. This fixes
that.

Part of https://github.com/tokio-rs/axum/issues/259
This commit is contained in:
David Pedersen
2021-08-24 18:27:06 +00:00
committed by GitHub
parent ab207af060
commit 0d2db387a8
3 changed files with 22 additions and 2 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# Unreleased
- 👀
- **fixed:** Fix URI captures matching empty segments. This means requests with
URI `/` will no longer be matched by `/:key` ([#264](https://github.com/tokio-rs/axum/pull/264))
# 0.2.1 (24. August, 2021)