Sfoglia il codice sorgente

链接不重复使用

callm 1 anno fa
parent
commit
20a7ccc94a
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/com/uas/mes/core/util/HttpUtil.java

+ 1 - 2
src/com/uas/mes/core/util/HttpUtil.java

@@ -539,8 +539,7 @@ public class HttpUtil {
         HttpPost post = new HttpPost(postUrl);
         StringEntity postingString = new StringEntity(formData, HTTP.UTF_8);
         post.setEntity(postingString);
-		post.setHeader("Content-type", "application/json");
-		post.setHeader("Connection", "close");
+        post.setHeader("Content-type", "application/json");
         CloseableHttpResponse response = httpClient.execute(post);
         return Response.getResponse(response);
     }