HTTPCLIENT-1700: Netscape draft, browser compatibility, RFC 2109, RFC 2965 and default cookie specs to ignore cookies with empty name for consistency with RFC 6265 specs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1722959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f9514a0f9a
commit
b781fa8e03
|
@ -92,7 +92,7 @@ public abstract class CookieSpecBase extends AbstractCookieSpec {
|
||||||
final String name = headerelement.getName();
|
final String name = headerelement.getName();
|
||||||
final String value = headerelement.getValue();
|
final String value = headerelement.getValue();
|
||||||
if (name == null || name.isEmpty()) {
|
if (name == null || name.isEmpty()) {
|
||||||
throw new MalformedCookieException("Cookie name may not be empty");
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
final BasicClientCookie cookie = new BasicClientCookie(name, value);
|
final BasicClientCookie cookie = new BasicClientCookie(name, value);
|
||||||
|
|
Loading…
Reference in New Issue