cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepti Dohare <deepti.doh...@citrix.com>
Subject [PATCH] CS-14345 Logout API is not returning XML header
Date Mon, 11 Jun 2012 09:41:06 GMT

Signed-off-by: Deepti Dohare <deepti.dohare@citrix.com>
---
 server/src/com/cloud/api/ApiServlet.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index b7b7fff..1c24191 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();
     }
-- 
1.7.4.1


Mime
View raw message