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

Martin Grigorov resolved WICKET-4804.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.9
                   6.2.0
    
> Add #setStatus(int) in AbstractResource.ResourceResponse
> --------------------------------------------------------
>
>                 Key: WICKET-4804
>                 URL: https://issues.apache.org/jira/browse/WICKET-4804
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5.8, 6.1.0
>            Reporter: Martin Grigorov
>            Assignee: Martin Grigorov
>             Fix For: 6.2.0, 1.5.9
>
>
> org.apache.wicket.request.resource.AbstractResource.ResourceResponse provides 
> #setError(int code, String message) but doesn't provide #setStatus(int code).
> This makes it hard to set custom headers (e.g. cache control) and set status 
> 304 because if HttpServletResponse#setErrorCode() is used then many headers 
> are reset (including the cache control ones).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to