|
|
|
@ -10,6 +10,7 @@ import javax.servlet.ServletResponse;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletRequestWrapper;
|
|
|
|
|
import com.ruoyi.common.utils.http.HttpHelper;
|
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 构建可重复读取inputStream的request
|
|
|
|
@ -23,10 +24,10 @@ public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
|
|
|
|
|
public RepeatedlyRequestWrapper(HttpServletRequest request, ServletResponse response) throws IOException
|
|
|
|
|
{
|
|
|
|
|
super(request);
|
|
|
|
|
request.setCharacterEncoding("UTF-8");
|
|
|
|
|
response.setCharacterEncoding("UTF-8");
|
|
|
|
|
request.setCharacterEncoding(Constants.UTF8);
|
|
|
|
|
response.setCharacterEncoding(Constants.UTF8);
|
|
|
|
|
|
|
|
|
|
body = HttpHelper.getBodyString(request).getBytes("UTF-8");
|
|
|
|
|
body = HttpHelper.getBodyString(request).getBytes(Constants.UTF8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|