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

response.setContentLength问题 #66

Open
fwpsl opened this issue Dec 9, 2020 · 1 comment
Open

response.setContentLength问题 #66

fwpsl opened this issue Dec 9, 2020 · 1 comment

Comments

@fwpsl
Copy link

fwpsl commented Dec 9, 2020

response.setContentLength(responseData.length()); 如果response有中文时会有问题

这个地方应该使用responseData.getBytes(encryptionConfig.getResponseCharset())的length

@yinjihuan
Copy link
Owner

这个我复现下,我试过中文是没问题的

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