You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ni...@apache.org on 2012/06/19 10:57:29 UTC

git commit: CS-14345 Logout API is not returning XML header

Updated Branches:
  refs/heads/master 817595daf -> fc9a656b9


CS-14345 Logout API is not returning XML header

Signed-off-by: Deepti Dohare <de...@citrix.com>


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

Branch: refs/heads/master
Commit: fc9a656b978366f25416099836a52bd3aa1ea1df
Parents: 817595d
Author: unknown <nitin@nitin-PC.(none)>
Authored: Tue Jun 19 14:22:54 2012 +0530
Committer: Nitin Mehta <ni...@citrix.com>
Committed: Tue Jun 19 14:26:18 2012 +0530

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServlet.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fc9a656b/server/src/com/cloud/api/ApiServlet.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index a0da657..5f56b53 100755
--- a/server/src/com/cloud/api/ApiServlet.java
+++ b/server/src/com/cloud/api/ApiServlet.java
@@ -430,7 +430,10 @@ public class ApiServlet extends HttpServlet {
         if (BaseCmd.RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
             sb.append("{ \"logoutresponse\" : { \"description\" : \"success\" } }");
         } else {
-            sb.append("<logoutresponse><description>success</description></logoutresponse>");
+            sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
+            sb.append("<logoutresponse cloud-stack-version=\"" + ApiDBUtils.getVersion() + "\">");
+            sb.append("<description>success</description>");
+            sb.append("</logoutresponse>");
         }
         return sb.toString();
     }