yinjihuan / monkey-api-encrypt

monkey-api-encrypt是对基于Servlet的Web框架API请求进行统一加解密操作
Apache License 2.0
792 stars 347 forks source link

response.setContentLength问题 #66

Open fwpsl opened 3 years ago

fwpsl commented 3 years ago

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

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

yinjihuan commented 3 years ago

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