You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jh...@apache.org on 2015/06/23 23:26:22 UTC
incubator-calcite git commit: [CALCITE-765] Set Content-Type from the RPC server to application/json (Lukáš Lalinský)
Repository: incubator-calcite
Updated Branches:
refs/heads/master 02eddd18a -> d559bacf2
[CALCITE-765] Set Content-Type from the RPC server to application/json (Lukáš Lalinský)
Close apache/incubator-calcite#96
Project: http://git-wip-us.apache.org/repos/asf/incubator-calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/d559bacf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-calcite/tree/d559bacf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-calcite/diff/d559bacf
Branch: refs/heads/master
Commit: d559bacf2dd587817f07412e01a3b0266e954fe3
Parents: 02eddd1
Author: Lukáš Lalinský <lu...@oxygene.sk>
Authored: Tue Jun 23 14:00:11 2015 +0200
Committer: Julian Hyde <jh...@apache.org>
Committed: Tue Jun 23 10:31:45 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/calcite/avatica/server/AvaticaHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-calcite/blob/d559bacf/avatica-server/src/main/java/org/apache/calcite/avatica/server/AvaticaHandler.java
----------------------------------------------------------------------
diff --git a/avatica-server/src/main/java/org/apache/calcite/avatica/server/AvaticaHandler.java b/avatica-server/src/main/java/org/apache/calcite/avatica/server/AvaticaHandler.java
index ea18ff2..fa0e1ac 100644
--- a/avatica-server/src/main/java/org/apache/calcite/avatica/server/AvaticaHandler.java
+++ b/avatica-server/src/main/java/org/apache/calcite/avatica/server/AvaticaHandler.java
@@ -45,7 +45,7 @@ public class AvaticaHandler extends AbstractHandler {
public void handle(String target, Request baseRequest,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
- response.setContentType("text/html;charset=utf-8");
+ response.setContentType("application/json;charset=utf-8");
response.setStatus(HttpServletResponse.SC_OK);
if (request.getMethod().equals("POST")) {
final String jsonRequest =