diff --git a/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java b/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java index 32730d25b..f4f98f191 100644 --- a/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java +++ b/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java @@ -92,7 +92,7 @@ public abstract class CookieSpecBase extends AbstractCookieSpec { final String name = headerelement.getName(); final String value = headerelement.getValue(); if (name == null || name.isEmpty()) { - throw new MalformedCookieException("Cookie name may not be empty"); + continue; } final BasicClientCookie cookie = new BasicClientCookie(name, value);