Skip to content

Commit e0860d5

Browse files
Deepti Doharenitinmeh
authored andcommitted
CS-14345 Fixing for Login API also.
Signed-off-by: Deepti Dohare <deepti.dohare@citrix.com>
1 parent aa95add commit e0860d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎server/src/com/cloud/api/ApiServlet.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ private String getLoginSuccessResponse(HttpSession session, String responseType)
401401
}
402402
sb.append(" } }");
403403
} else {
404-
sb.append("<loginresponse>");
404+
sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
405+
sb.append("<loginresponse cloud-stack-version=\"" + ApiDBUtils.getVersion() + "\">");
405406
sb.append("<timeout>" + inactiveInterval + "</timeout>");
406407
Enumeration attrNames = session.getAttributeNames();
407408
if (attrNames != null) {

0 commit comments

Comments
 (0)