Guarded against NPE in case of null Header.
This commit is contained in:
parent
f75a9d83f1
commit
75414a05c0
|
@ -114,7 +114,8 @@ public class Headers implements Iterable<Headers.Header>
|
|||
*/
|
||||
public void put(Header header)
|
||||
{
|
||||
headers.put(header.name().toLowerCase(), header);
|
||||
if (header != null)
|
||||
headers.put(header.name().toLowerCase(), header);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue