callm пре 1 година
родитељ
комит
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);
         HttpPost post = new HttpPost(postUrl);
         StringEntity postingString = new StringEntity(formData, HTTP.UTF_8);
         StringEntity postingString = new StringEntity(formData, HTTP.UTF_8);
         post.setEntity(postingString);
         post.setEntity(postingString);
-		post.setHeader("Content-type", "application/json");
-		post.setHeader("Connection", "close");
+        post.setHeader("Content-type", "application/json");
         CloseableHttpResponse response = httpClient.execute(post);
         CloseableHttpResponse response = httpClient.execute(post);
         return Response.getResponse(response);
         return Response.getResponse(response);
     }
     }