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:
parent
dfbe0ff485
commit
17250b81c0
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue