CS-14345 Fixing for Login API also.

Signed-off-by: Deepti Dohare <deepti.dohare@citrix.com>
This commit is contained in:
Deepti Dohare 2012-06-14 11:40:48 +05:30 committed by Nitin Mehta
parent aa95add354
commit e0860d5a48

View File

@ -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) {