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: #3449 accept slice parameter as json.RawMessage for http request #3452

Merged
merged 2 commits into from Apr 7, 2024

Conversation

wln32
Copy link
Member

@wln32 wln32 commented Apr 4, 2024

http请求后,请求参数会被转换为map类型

如果要被赋值的字段类型是json.RawMessage

原来的逻辑只判断了从map到json.RawMessage

并没有判断[]map到json.RawMessage

@wln32 wln32 requested review from hailaz, oldme-git and gqcn April 4, 2024 06:55
@wln32 wln32 added the bug It is confirmed a bug, but don't worry, we'll handle it. label Apr 6, 2024
@gqcn gqcn changed the title fix: convert any type slice to json.RawMessage #3449 fix: #3449 accept slice parameter as json.RawMessage for http request Apr 7, 2024
@gqcn gqcn merged commit 83ba887 into gogf:master Apr 7, 2024
23 checks passed
@wln32 wln32 deleted the fix/gconv-jsonRawMessage branch April 7, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants