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

Chinese garbled #38

Open
zuoRambo opened this issue Jul 8, 2020 · 1 comment
Open

Chinese garbled #38

zuoRambo opened this issue Jul 8, 2020 · 1 comment

Comments

@zuoRambo
Copy link

zuoRambo commented Jul 8, 2020

We used the master version but response body was Chinese garbled.

main.go

r := gin.Default()
r.Use(gzip.Gzip(gzip.DefaultCompression))

response body

{"errno":101000,"msg":"�数缺失 Key: 'RequestCommentInfo.ItemID' Error:Field validation for 'ItemID' failed on the 'required' tag"}
@jianzhiyao
Copy link

You should decode response body if Conetent-Encoding equals gzip

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

No branches or pull requests

2 participants