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: make request.query writeable #3842

Merged
merged 1 commit into from
May 9, 2024
Merged

fix: make request.query writeable #3842

merged 1 commit into from
May 9, 2024

Conversation

czy88840616
Copy link
Member

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@czy88840616 czy88840616 added pr: polish This PR adds a very minor behavior improvement that users will enjoy. pr: bug fix This PR fixes a bug in a past release. and removed pr: polish This PR adds a very minor behavior improvement that users will enjoy. labels May 9, 2024
@czy88840616
Copy link
Member Author

zookeeper image 看起来有问题,先发版后修

@czy88840616 czy88840616 merged commit 9b13409 into main May 9, 2024
3 of 7 checks passed
@czy88840616 czy88840616 deleted the fix_query_writeable branch May 9, 2024 02:52

@Get('/set_query')
async setQuery(ctx) {
ctx.query = { a: 1 };
Copy link

Choose a reason for hiding this comment

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

ctx.request.query = query

是不是要取reqeust里的query?

目前这种,跟之前的行为不一样,导致我这边parma validation 过不了

Copy link
Member Author

Choose a reason for hiding this comment

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

ctx.query 实际会调用 ctx.request.query

czy88840616 added a commit that referenced this pull request May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: bug fix This PR fixes a bug in a past release.
Development

Successfully merging this pull request may close these issues.

None yet

2 participants