Fix for ALFCOM-2882 - only set response content type for a command if it has not already been applied.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14778 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2009-06-18 09:19:29 +00:00
parent 360d27324f
commit 818c99168d

View File

@@ -181,7 +181,10 @@ public class CommandServlet extends BaseServlet
if (logger.isDebugEnabled())
logger.debug("No return page specified, displaying status output.");
if (res.getContentType() == null)
{
res.setContentType("text/html");
}
// request that the processor output a useful status message
PrintWriter out = res.getWriter();