Add containsKey to ServletResponseHttpHeaders

Issue: SPR-13668
This commit is contained in:
Rossen Stoyanchev
2015-11-11 14:22:26 -05:00
parent cf4a417f71
commit 62af99a21c
2 changed files with 16 additions and 5 deletions

View File

@@ -137,6 +137,11 @@ public class ServletServerHttpResponse implements ServerHttpResponse {
private static final long serialVersionUID = 3410708522401046302L;
@Override
public boolean containsKey(Object key) {
return (super.containsKey(key) || (get(key) != null));
}
@Override
public String getFirst(String headerName) {
String value = servletResponse.getHeader(headerName);