mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -181,7 +181,10 @@ public class CommandServlet extends BaseServlet
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("No return page specified, displaying status output.");
|
||||
|
||||
res.setContentType("text/html");
|
||||
if (res.getContentType() == null)
|
||||
{
|
||||
res.setContentType("text/html");
|
||||
}
|
||||
|
||||
// request that the processor output a useful status message
|
||||
PrintWriter out = res.getWriter();
|
||||
|
Reference in New Issue
Block a user