asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ti...@apache.org
Subject asterixdb git commit: ASTERIXDB-1499: remove incorrect Content-Length
Date Thu, 23 Jun 2016 16:08:33 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 85482330b -> cf0b05cc7


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>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/cf0b05cc
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/cf0b05cc
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/cf0b05cc

Branch: refs/heads/master
Commit: cf0b05cc79590049c5a3470369516e71da1424be
Parents: 8548233
Author: Till Westmann <tillw@apache.org>
Authored: Thu Jun 23 14:35:48 2016 +0200
Committer: Till Westmann <tillw@apache.org>
Committed: Thu Jun 23 08:45:47 2016 -0700

----------------------------------------------------------------------
 .../org/apache/asterix/api/http/servlet/QueryServiceServlet.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/cf0b05cc/asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
----------------------------------------------------------------------
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 class QueryServiceServlet extends HttpServlet {
     }
 
     public enum Header {
-        Accept("Accept"),
-        ContentLength("Content-Length");
+        Accept("Accept");
 
         private final String str;
 
@@ -334,7 +333,6 @@ public class QueryServiceServlet extends HttpServlet {
         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");


Mime
View raw message