Use getHeader() instead of getHeaders()
This commit is contained in:
parent
6e8e836b2e
commit
a447fbd18a
@ -102,8 +102,7 @@ public class DefaultHttpMessage implements HttpMessage {
|
||||
}
|
||||
|
||||
public String getHeader(final String name) {
|
||||
List<String> values = getHeaders(name);
|
||||
return values.size() > 0 ? values.get(0) : null;
|
||||
return headers.getHeader(name);
|
||||
}
|
||||
|
||||
public List<String> getHeaders(final String name) {
|
||||
|
@ -79,8 +79,7 @@ public class DefaultSpdyHeaderBlock implements SpdyHeaderBlock {
|
||||
}
|
||||
|
||||
public String getHeader(final String name) {
|
||||
List<String> values = getHeaders(name);
|
||||
return values.size() > 0 ? values.get(0) : null;
|
||||
return headers.getHeader(name);
|
||||
}
|
||||
|
||||
public List<String> getHeaders(final String name) {
|
||||
|
Loading…
Reference in New Issue
Block a user