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:
Oleg Kalnichevski 2016-01-04 20:22:48 +00:00
parent f9514a0f9a
commit b781fa8e03
1 changed files with 1 additions and 1 deletions

View File

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