Minor change to permit xml req param as either xml or XML

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@165 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jan Bartel 2009-04-21 03:11:25 +00:00
parent dfbe0ff485
commit 17250b81c0
1 changed files with 7 additions and 2 deletions

View File

@ -87,10 +87,15 @@ public class StatisticsServlet extends HttpServlet
}
}
if (req.getParameter("xml") != null && "true".equals(req.getParameter("xml")))
String wantXml = req.getParameter("xml");
if (wantXml == null)
wantXml = req.getParameter("XML");
if (wantXml != null && "true".equalsIgnoreCase(wantXml))
{
sendXmlResponse(resp);
} else
}
else
{
sendTextResponse(resp);
}