管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2024-12-06 042b07f18720af7559f30f5c0b50b770df4a85f6
src/main/java/com/lf/server/helper/HttpHelper.java
@@ -101,6 +101,7 @@
        String method = request.getMethod();
        HttpEntityEnclosingRequest proxyRequest = new BasicHttpEntityEnclosingRequest(method, url);
        proxyRequest.setEntity(new InputStreamEntity(request.getInputStream(), getContentLength(request)));
        //String str = EntityUtils.toString(proxyRequest.getEntity(), "UTF-8")
        return proxyRequest;
    }
@@ -269,6 +270,7 @@
    protected void copyResponseEntity(HttpResponse proxyResponse, HttpServletResponse response) throws IOException {
        HttpEntity entity = proxyResponse.getEntity();
        if (entity != null) {
            //String str = EntityUtils.toString(entity, "UTF-8")
            OutputStream servletOutputStream = response.getOutputStream();
            entity.writeTo(servletOutputStream);
        }