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(net/ghttp): MakeBodyRepeatableRead takes not effective when called after ParseForm #4143

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

cyjaysong
Copy link
Contributor

在 net/ghttp/ghttp_request_param.go 中 parseForm函数 在 MakeBodyRepeatableRead(true)执行之前解析表单,导致GetBody() 获取不到Body内容

net/ghttp/ghttp_request_param.go Outdated Show resolved Hide resolved
@gqcn gqcn changed the title fix(net/ghttp) parseForm MakeBodyRepeatableRead not effective fix(net/ghttp): MakeBodyRepeatableRead takes not effective when called after ParseForm Feb 11, 2025
@cyjaysong cyjaysong force-pushed the fix/BodyRepeatableRead branch from a88dfb8 to 7f199fe Compare February 11, 2025 08:05
net/ghttp/ghttp_request.go Outdated Show resolved Hide resolved
@cyjaysong cyjaysong force-pushed the fix/BodyRepeatableRead branch from 7f199fe to 2441d6f Compare February 11, 2025 08:16
@gqcn gqcn merged commit 7d3b055 into gogf:master Feb 11, 2025
17 checks passed
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