You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Assigned) (JIRA)" <ji...@apache.org> on 2012/04/02 09:24:33 UTC
[jira] [Assigned] (WICKET-4481) Add setHeader() to
MockHttpServletRequest to be able to override default headers
[ https://issues.apache.org/jira/browse/WICKET-4481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov reassigned WICKET-4481:
---------------------------------------
Assignee: Martin Grigorov
> 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
>
> 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