[
https://issues.apache.org/jira/browse/WICKET-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4481.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.0.0-RC1
1.5.6
> Add setHeader() to MockHttpServletRequest to be able to override default
> headers
> --------------------------------------------------------------------------------
>
> Key: WICKET-4481
> URL: https://issues.apache.org/jira/browse/WICKET-4481
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.5.5
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 1.5.6, 6.0.0-RC1
>
>
> org.apache.wicket.protocol.http.mock.MockHttpServletRequest#setDefaultHeaders()
> sets few default headers but since there is only #addHeader() and no
> #setHeader() there is no way to override the value of 'User-Agent' header for
> example.
> http://stackoverflow.com/questions/9893609/can-one-set-the-browser-type-in-wicket-1-5-test-cases
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira