Skip to content

Fix query extractor given an bad request error when query string is empty. - #117

Merged
davidpdrsn merged 1 commit into
tokio-rs:mainfrom
sunli829:main
Aug 4, 2021
Merged

Fix query extractor given an bad request error when query string is empty.#117
davidpdrsn merged 1 commit into
tokio-rs:mainfrom
sunli829:main

Conversation

@sunli829

@sunli829 sunli829 commented Aug 4, 2021

Copy link
Copy Markdown
Contributor

Related: #82

@sunli829
sunli829 force-pushed the main branch 2 times, most recently from 2d3c086 to 4c49ae6 Compare August 4, 2021 12:57
Comment thread src/extract/query.rs
@sunli829
sunli829 marked this pull request as ready for review August 4, 2021 12:59
@sunli829
sunli829 marked this pull request as draft August 4, 2021 13:01
@sunli829
sunli829 marked this pull request as ready for review August 4, 2021 13:05
@sunli829
sunli829 marked this pull request as draft August 4, 2021 14:02
Comment thread src/extract/form.rs
@sunli829
sunli829 marked this pull request as ready for review August 4, 2021 14:08
Comment thread CHANGELOG.md Outdated

@davidpdrsn davidpdrsn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great! And thanks for adding tests 😊

One quick change to the wording of the changelog but otherwise it looks good!

@sunli829
sunli829 marked this pull request as draft August 4, 2021 14:17
@sunli829

sunli829 commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

I removed QueryStringMissing because it is no longer used.

@sunli829
sunli829 marked this pull request as ready for review August 4, 2021 14:20
Comment thread src/extract/rejection.rs
@sunli829
sunli829 marked this pull request as draft August 4, 2021 14:43
@sunli829

sunli829 commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

#[deprecated] caused some nasty warnings, I don't know what to do. 😂

@davidpdrsn

Copy link
Copy Markdown
Member

Alright. Then lets just merge this without the deprecation. Then I'll look into it.

…mpty. (tokio-rs#82)

Co-Authored-By: David Pedersen <david.pdrsn@gmail.com>
@sunli829
sunli829 marked this pull request as ready for review August 4, 2021 15:01
@sunli829

sunli829 commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

It's done now. 🙂

@davidpdrsn
davidpdrsn merged commit fb0b3b7 into tokio-rs:main Aug 4, 2021
davidpdrsn added a commit that referenced this pull request Aug 4, 2021
Since #117 its no longer used. Will
be removed in 0.2.
davidpdrsn added a commit that referenced this pull request Aug 4, 2021
Since #117 its no longer used. Will
be removed in 0.2.
davidpdrsn added a commit that referenced this pull request Aug 6, 2021
0.1.3 (06. August, 2021)

- Fix stripping prefix when nesting services at `/` ([#91](#91))
- Add support for WebSocket protocol negotiation ([#83](#83))
- Use `pin-project-lite` instead of `pin-project` ([#95](#95))
- Re-export `http` crate and `hyper::Server` ([#110](#110))
- Fix `Query` and `Form` extractors giving bad request error when query string is empty. ([#117](#117))
- Add `Path` extractor. ([#124](#124))
- Fixed the implementation of `IntoResponse` of `(HeaderMap, T)` and `(StatusCode, HeaderMap, T)` would ignore headers from `T` ([#137](#137))
- Deprecate `extract::UrlParams` and `extract::UrlParamsMap`. Use `extract::Path` instead ([#138](#138))
@davidpdrsn davidpdrsn mentioned this pull request Aug 6, 2021
davidpdrsn added a commit that referenced this pull request Aug 6, 2021
- Fix stripping prefix when nesting services at `/` ([#91](#91))
- Add support for WebSocket protocol negotiation ([#83](#83))
- Use `pin-project-lite` instead of `pin-project` ([#95](#95))
- Re-export `http` crate and `hyper::Server` ([#110](#110))
- Fix `Query` and `Form` extractors giving bad request error when query string is empty. ([#117](#117))
- Add `Path` extractor. ([#124](#124))
- Fixed the implementation of `IntoResponse` of `(HeaderMap, T)` and `(StatusCode, HeaderMap, T)` would ignore headers from `T` ([#137](#137))
- Deprecate `extract::UrlParams` and `extract::UrlParamsMap`. Use `extract::Path` instead ([#138](#138))
saad-aistack added a commit to saad-aistack/rust-high-perf-api that referenced this pull request Mar 26, 2026
Since tokio-rs/axum#117 its no longer used. Will
be removed in 0.2.
saad-aistack added a commit to saad-aistack/rust-high-perf-api that referenced this pull request Mar 26, 2026
- Fix stripping prefix when nesting services at `/` ([#91](tokio-rs/axum#91))
- Add support for WebSocket protocol negotiation ([#83](tokio-rs/axum#83))
- Use `pin-project-lite` instead of `pin-project` ([#95](tokio-rs/axum#95))
- Re-export `http` crate and `hyper::Server` ([#110](tokio-rs/axum#110))
- Fix `Query` and `Form` extractors giving bad request error when query string is empty. ([#117](tokio-rs/axum#117))
- Add `Path` extractor. ([#124](tokio-rs/axum#124))
- Fixed the implementation of `IntoResponse` of `(HeaderMap, T)` and `(StatusCode, HeaderMap, T)` would ignore headers from `T` ([#137](tokio-rs/axum#137))
- Deprecate `extract::UrlParams` and `extract::UrlParamsMap`. Use `extract::Path` instead ([#138](tokio-rs/axum#138))
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