StreamResult calling wrong method for setContentType in resolveParamsFromStack
------------------------------------------------------------------------------
Key: WW-2565
URL: https://issues.apache.org/struts/browse/WW-2565
Project: Struts 2
Issue Type: Bug
Components: Dispatch Filter
Affects Versions: 2.1.0
Reporter: Scott Hong
The head version of StreamResult.java has a very obvious bug.
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java?view=markup
protected void resolveParamsFromStack(ValueStack stack) {
..........................
String contentType = stack.findString("contentType");
if (contentType != null) {
setContentLength(contentType);
}
..........................
}
Change from
setContentLength(contentType);
To:
setContentType(contentType);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.