commit | cf0b05cc79590049c5a3470369516e71da1424be | [log] [tgz] |
---|---|---|
author | Till Westmann <tillw@apache.org> | Thu Jun 23 14:35:48 2016 +0200 |
committer | Till Westmann <tillw@apache.org> | Thu Jun 23 08:45:47 2016 -0700 |
tree | 0732a58f26a428f66581c4e161cc4393558c43f6 | |
parent | 85482330bf7fddfd8975ad458849949fc6a25df1 [diff] |
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");