callm 1 год назад
Родитель
Сommit
20a7ccc94a
1 измененных файлов с 1 добавлено и 2 удалено
  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);
     }