Use getHeader() instead of getHeaders()

This commit is contained in:
Trustin Lee 2012-02-07 18:13:13 +09:00
parent 29cafcf842
commit dd27cd510a
2 changed files with 2 additions and 4 deletions

View File

@ -96,8 +96,7 @@ public class DefaultHttpMessage implements HttpMessage {
@Override
public String getHeader(final String name) {
List<String> values = getHeaders(name);
return values.size() > 0 ? values.get(0) : null;
return headers.getHeader(name);
}
@Override

View File

@ -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) {