You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2020/07/07 12:15:07 UTC
[incubator-doris] branch master updated: [Bug] Return actual json
for ConnectionAction (#4016)
This is an automated email from the ASF dual-hosted git repository.
lichaoyong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new c9a7c37 [Bug] Return actual json for ConnectionAction (#4016)
c9a7c37 is described below
commit c9a7c373a709a9d8c195eaf4245fb06c1cc667fe
Author: lichaoyong <li...@gmail.com>
AuthorDate: Tue Jul 7 20:14:55 2020 +0800
[Bug] Return actual json for ConnectionAction (#4016)
---
fe/src/main/java/org/apache/doris/http/rest/ConnectionAction.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fe/src/main/java/org/apache/doris/http/rest/ConnectionAction.java b/fe/src/main/java/org/apache/doris/http/rest/ConnectionAction.java
index 2d486be..b0caaff 100644
--- a/fe/src/main/java/org/apache/doris/http/rest/ConnectionAction.java
+++ b/fe/src/main/java/org/apache/doris/http/rest/ConnectionAction.java
@@ -55,7 +55,8 @@ public class ConnectionAction extends RestBaseAction {
return;
}
String queryId = DebugUtil.printId(context.queryId());
- response.getContent().append("{\"query_id\" : " + queryId + "}");
+ response.setContentType("application/json");
+ response.getContent().append("{\"query_id\" : \"" + queryId + "\"}");
sendResult(request, response);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org