Skip to content

Conversation

markgoddard
Copy link

  • Update MSRV to 1.66.1
  • Fix trim trailing slash middleware
  • Update axum to 0.6.18

Due to AWS SDK.
The axum docs point out that any middleware that should affect routing must wrap
the Router. In 0.6.12 we rely on a bug in axum routing that allows the
trailing slash middleware to work on nested paths (but fails on root
paths). In 0.6.13 onwards this bug is no longer present, so we lose the
trailing slash removal.

This change fixes the issue.

tokio-rs/axum#1978
https://docs.rs/axum/0.6.18/axum/middleware/index.html#rewriting-request-uri-in-middleware
@markgoddard markgoddard self-assigned this May 2, 2023
@markgoddard markgoddard changed the title bump axum Bump axum, fix trailing slash middleware issue May 2, 2023
@markgoddard markgoddard merged commit 321a130 into main May 2, 2023
@markgoddard markgoddard deleted the bump-axum branch May 2, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant