callm пре 1 година
родитељ
комит
7122124b04
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/com/uas/mes/core/util/HttpUtil.java

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

@@ -539,7 +539,8 @@ 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("Content-type", "application/json");
+		post.setHeader("Connection", "close");
         CloseableHttpResponse response = httpClient.execute(post);
         return Response.getResponse(response);
     }