incubator-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 2/2] CS-14345 Fixing for Login API also.
Date Thu, 14 Jun 2012 06:10:48 GMT

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

diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index 1c24191..2d06ef7 100755
--- a/server/src/com/cloud/api/ApiServlet.java
+++ b/server/src/com/cloud/api/ApiServlet.java
@@ -401,7 +401,8 @@ public class ApiServlet extends HttpServlet {
             }
             sb.append(" } }");
         } else {
-            sb.append("<loginresponse>");
+            sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
+            sb.append("<loginresponse cloud-stack-version=\"" + ApiDBUtils.getVersion()
+ "\">");
             sb.append("<timeout>" + inactiveInterval + "</timeout>");
             Enumeration attrNames = session.getAttributeNames();
             if (attrNames != null) {
-- 
1.7.4.1


Mime
View raw message