asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann (Code Review)" <do-not-re...@asterixdb.incubator.apache.org>
Subject Change in asterixdb[master]: ASTERIXDB-1499: remove incorrect Content-Length
Date Thu, 23 Jun 2016 12:36:12 GMT
Till Westmann has uploaded a new change for review.

  https://asterix-gerrit.ics.uci.edu/956

Change subject: ASTERIXDB-1499: remove incorrect Content-Length
......................................................................

ASTERIXDB-1499: remove incorrect Content-Length

Change-Id: Id2aaaa60b6400653bb95950f62ed80419dd5e85b
---
M asterixdb/asterix-app/src/main/java/org/apache/asterix/api/http/servlet/QueryServiceServlet.java
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/56/956/1

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");

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/956
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id2aaaa60b6400653bb95950f62ed80419dd5e85b
Gerrit-PatchSet: 1
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Till Westmann <tillw@apache.org>

Mime
View raw message