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(volo-http): append query for StripPrefixLayer #489

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

yukiiiteru
Copy link
Member

Motivation

In the previous implementation, the nested router would only get the inner uri but not its query, the query would be dropped and the inner router would never be able to get it.

Solution

This commit fixes it by appending the query if it exists.

Fixes: #488

In the previous implementation, the nested router would only get the
inner uri but not its query, the query would be dropped and the inner
router would never be able to get it.

This commit fixes it by appending the query if it exists.

Fixes: cloudwego#488

Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
@yukiiiteru yukiiiteru requested review from a team as code owners August 26, 2024 08:46
@yukiiiteru yukiiiteru merged commit 7af01d6 into cloudwego:main Aug 26, 2024
15 checks passed
@yukiiiteru yukiiiteru deleted the fix/http-nest-router branch August 26, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

volo-http: nested router incorrectly removes query params from uri
3 participants