< prev index next >

src/java.httpclient/share/classes/java/net/http/HttpHeadersImpl.java

Print this page

        

*** 70,80 **** return Optional.ofNullable(l == null ? null : l.get(0)); } @Override public List<String> allValues(String name) { ! return headers.get(name); } @Override public Map<String, List<String>> map() { return Collections.unmodifiableMap(headers); --- 70,80 ---- return Optional.ofNullable(l == null ? null : l.get(0)); } @Override public List<String> allValues(String name) { ! return Collections.unmodifiableList(headers.get(name)); } @Override public Map<String, List<String>> map() { return Collections.unmodifiableMap(headers);
< prev index next >