You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2026/01/03 12:33:00 UTC

[jira] [Updated] (WW-5602) Can't specify empty charset on StreamResult

     [ https://issues.apache.org/jira/browse/WW-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-5602:
------------------------------
    Fix Version/s: 6.9.0
                   7.2.0

> Can't specify empty charset on StreamResult
> -------------------------------------------
>
>                 Key: WW-5602
>                 URL: https://issues.apache.org/jira/browse/WW-5602
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 6.8.0
>            Reporter: Andrea Vettori
>            Priority: Minor
>             Fix For: 6.9.0, 7.2.0
>
>
> When serving binary files using StreamResult the Content Type header should NOT contain a charset specification.
> If the charset is not specified in the StreamResult, UTF-8 is automatically applied.
> If the charset is specified with an expression, and the expression evaluates to null/empty string, an invalid
> ;charset=
> specification is added to the content-type header on the StreamResult.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)