Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Capture wildcard path correctly, resolve #167. #171

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

secretfader
Copy link

@secretfader secretfader commented Apr 13, 2019

c70d2bc resolved the panic raised in the issue, but it also exposed my
ignorance with regards to route-recognizer, our new routing library.

Placing the * after a named param, as it was in the original example,
leads to the behavior mentioned in #167. route-recognizer is operating
exactly as intended. :path* doesn't capture additional URL segments,
where *path does. (It also appends * to the parameter key, as well.)

c70d2bc resolved the panic raised in the issue, but it also exposed my
ignorance with regards to route-recognizer, our new routing library.

Placing the * after a named param, as it was in the original example,
leads to the behavior mentioned in http-rs#167. route-recognizer is operating
exactly as intended. `:path*` doesn't capture additional URL segments,
where `*path` does.
Copy link
Member

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yoshuawuyts yoshuawuyts merged commit dc36c89 into http-rs:master Apr 15, 2019
@secretfader secretfader deleted the wildcard branch April 15, 2019 16:59
@secretfader
Copy link
Author

@yoshuawuyts Glad to help. I just wish I hadn't misunderstood how route-recognizer works. (I'd like to improve docs if/when we migrate that crate to @rustasync.)

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.

2 participants