Skip to content

url decode path segments with warp::path::param()#1026

Open
urkle wants to merge 1 commit intoseanmonstar:masterfrom
urkle:feat-param-url-decoding
Open

url decode path segments with warp::path::param()#1026
urkle wants to merge 1 commit intoseanmonstar:masterfrom
urkle:feat-param-url-decoding

Conversation

@urkle
Copy link
Copy Markdown
Contributor

@urkle urkle commented Mar 15, 2023

Similar to #704 except it simply always decodes the path pieces before parsing.

This matches the behavior for query params where they are decoded by serde_urlencoded.

This PR also adds test for filters::path::param as well as for filters::query::query to assert the handling.

@urkle urkle force-pushed the feat-param-url-decoding branch 2 times, most recently from 53beb0b to 5e7db03 Compare March 30, 2023 16:01
@urkle urkle force-pushed the feat-param-url-decoding branch from 5e7db03 to 6d54ce9 Compare January 19, 2024 21:37
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