Skip to content

Commit 6cdc053

Browse files
author
Stephane Landelle
committed
Response.getHeaders(String name) should return an empty list instead of null, close AsyncHttpClient#764
1 parent 09d80fd commit 6cdc053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/ResponseBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public final String getHeader(String name) {
7575

7676
@Override
7777
public final List<String> getHeaders(String name) {
78-
return headers != null ? getHeaders().get(name) : null;
78+
return headers != null ? getHeaders().get(name) : Collections.<String> emptyList();
7979
}
8080

8181
@Override

0 commit comments

Comments
 (0)