[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mock ...
Peter Muir
peter at bleepbleep.org.uk
Thu Mar 22 09:32:07 EDT 2007
User: pmuir
Date: 07/03/22 09:32:07
Modified: src/main/org/jboss/seam/mock MockHttpServletRequest.java
Log:
JBSEAM-1091
Revision Changes Path
1.15 +386 -384 jboss-seam/src/main/org/jboss/seam/mock/MockHttpServletRequest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MockHttpServletRequest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/MockHttpServletRequest.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- MockHttpServletRequest.java 23 Feb 2007 03:34:16 -0000 1.14
+++ MockHttpServletRequest.java 22 Mar 2007 13:32:07 -0000 1.15
@@ -27,7 +27,7 @@
/**
* @author Gavin King
* @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
public class MockHttpServletRequest implements HttpServletRequest
{
@@ -56,6 +56,8 @@
this.principalName = principalName;
this.principalRoles = principalRoles;
this.cookies = cookies;
+ // The 1.2 RI NPEs if this header isn't present
+ headers.put("Accept", new String[0]);
}
public Map<String, String[]> getParameters()
More information about the jboss-cvs-commits
mailing list