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

net/gclient: when posting a form, if there is an equal sign in the value, it will be truncated #4156

Open
marcellowy opened this issue Feb 13, 2025 · 0 comments
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@marcellowy
Copy link

Go version

1.23.4

GoFrame version

v2.8.0

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

Env Detail:
Go Version: go1.23.4 windows/amd64
GF Version(go.mod):
github.com/gogf/gf/v2@v2.7.1
CLI Detail:
Installed At: C:\Users\Marcello\go\bin\gf.exe
Built Go Version: go1.22.8
Built GF Version: v2.8.0
Others Detail:
Docs: https://goframe.org
Now : 2025-02-14T00:25:08+08:00

client := gclient.New()
data := make(map[string]string)
data["file"] = "@file:path/to/file"
data["fieldName"] = "aaa=1&b=2"
client.Post(ctx, "http://xxxx.com/api", data)

// the server get 

fieldName = "aaa" // ?

something happened

What did you see happen?

server get the value is truncated

What did you expect to see?

the server gets the complete value

@marcellowy marcellowy added the bug It is confirmed a bug, but don't worry, we'll handle it. label Feb 13, 2025
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

No branches or pull requests

1 participant