DisplayTag

Wrong header set in BufferedResponseWrapper when a charset is already defined (missing '=')

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: Build/distribution
  • Labels:
    None
  • Application server:
    none

Description

In BufferedResponseWrapper13Impl you set the content type and i think you have forgotten '='.
In source 1.0 code is:
BufferedResponseWrapper13Impl
getResponse().setContentType(StringUtils.substringBefore(theContentType, "charset") + ' ' + charset);
and i think it should be:
getResponse().setContentType(StringUtils.substringBefore(theContentType, "charset") + '=' + charset);

(see on '=' fragment).
Best regards.

Activity

Hide
fabrizio giustina added a comment -
fixed in CVS for 1.1, thanks
Show
fabrizio giustina added a comment - fixed in CVS for 1.1, thanks

People

  • Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: