Author: manaRH
Date: 2010-12-14 18:16:09 -0500 (Tue, 14 Dec 2010)
New Revision: 13946
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/mock/MockHttpServletRequest.java
Log:
JBSEAM-3770
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/mock/MockHttpServletRequest.java
===================================================================
---
branches/community/Seam_2_2/src/main/org/jboss/seam/mock/MockHttpServletRequest.java 2010-12-14
13:53:30 UTC (rev 13945)
+++
branches/community/Seam_2_2/src/main/org/jboss/seam/mock/MockHttpServletRequest.java 2010-12-14
23:16:09 UTC (rev 13946)
@@ -178,8 +178,9 @@
}
public Enumeration getHeaders(String header)
- {
- return new IteratorEnumeration( Arrays.asList( headers.get(header) ).iterator() );
+ {
+ String[] values = headers.get(header);
+ return values==null || values.length==0 ? null : new IteratorEnumeration(
Arrays.asList( values ).iterator() );
}
public Enumeration getHeaderNames()