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

Request::query should match Tide's behavior #154

Closed
yoshuawuyts opened this issue May 24, 2020 · 3 comments
Closed

Request::query should match Tide's behavior #154

yoshuawuyts opened this issue May 24, 2020 · 3 comments
Labels
good first issue Good for newcomers

Comments

@yoshuawuyts
Copy link
Member

In http-rs/tide#537 we couldn't update the Request::query method to http_types' version because tests were failing. We should port Tide's tests to http-types and fix the query method to match the behavior. This means correctly parsing empty query strings, and setting a 400 status code.

This should be fairly straight forward, so marking as a good first issue!

Refs

@plippe
Copy link
Contributor

plippe commented May 27, 2020

Hey;

Happy to give it a try.

@plippe
Copy link
Contributor

plippe commented May 28, 2020

@yoshuawuyts would you mind releasing a new version of http-types with my changes. That would allow me to update tide.

@Fishrock123
Copy link
Member

Fishrock123 commented May 28, 2020

@plippe We'll probably do that tomorrow or so - Yosh mentioned doing a tide 0.10.0 tomorrow, which we would want a new http-types release for.

In the mean time, you can make a test/dev branch by updating tide's Cargo.toml to:

http-types = { git = "https://github.com/http-rs/http-types.git" }

if you made a draft pr that would probably help us do the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants