We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version go1.23.2 windows/amd64
2.9.0
Option Yes
Initial web project with the latest version and modify the HelloReq to :
HelloReq
type HelloReq struct { g.Meta `path:"/hello" tags:"Project" method:"get" sum:"List all projects"` Token string `json:"Authorization" des:"JWT" in:"header"` Owned bool `json:"owned" in:"query" default:"false"` Deleted bool `json:"deleted" in:"query" default:"false"` }
Send the request and dump req in controller
curl --location 'http://localhost:8000/hello?deleted=false' \ --header 'Authorization: 1'
The dump info would show:
{ Token: "1", Owned: true, Deleted: false, }
In the previous version (2.8.3), it was:
{ Token: "1", Owned: false, Deleted: false, }
Or if you move the Token to the end of the structure, it would also have the right dump:
{ Owned: false, Deleted: false, Token: "1", }
Seems some changes was made with the param parse? Haven't locate the bug yet, may be gconv related
The text was updated successfully, but these errors were encountered:
gf/net/ghttp/ghttp_request_param_request.go
Lines 241 to 254 in fee38b4
@gqcn Missing in query check here, seems related to #4182 ?
Sorry, something went wrong.
No branches or pull requests
Go version
go version go1.23.2 windows/amd64
GoFrame version
2.9.0
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
Initial web project with the latest version and modify the
HelloReq
to :Send the request and dump req in controller
What did you see happen?
The dump info would show:
What did you expect to see?
In the previous version (2.8.3), it was:
Or if you move the Token to the end of the structure, it would also have the right dump:
Seems some changes was made with the param parse? Haven't locate the bug yet, may be gconv related
The text was updated successfully, but these errors were encountered: