ASTERIXDB-1499: remove incorrect Content-Length

Change-Id: Id2aaaa60b6400653bb95950f62ed80419dd5e85b
Reviewed-on: https://asterix-gerrit.ics.uci.edu/956
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
diff --git a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
index 4376b22..35a780b 100644
--- a/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
+++ b/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
@@ -68,8 +68,7 @@
     }
 
     public enum Header {
-        Accept("Accept"),
-        ContentLength("Content-Length");
+        Accept("Accept");
 
         private final String str;
 
@@ -334,7 +333,6 @@
         GlobalConfig.ASTERIX_LOGGER.log(Level.SEVERE, result);
         //result = JSONUtil.indent(result);
 
-        response.setIntHeader(Header.ContentLength.str(), result.length());
         response.getWriter().print(result);
         if (response.getWriter().checkError()) {
             LOGGER.warning("Error flushing output writer");