Signed-off-by: Deepti Dohare <[email protected]>
---
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