You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2016/01/04 21:22:49 UTC
svn commit: r1722959 -
/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java
Author: olegk
Date: Mon Jan 4 20:22:48 2016
New Revision: 1722959
URL: http://svn.apache.org/viewvc?rev=1722959&view=rev
Log:
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
Modified:
httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java
Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java?rev=1722959&r1=1722958&r2=1722959&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java (original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/CookieSpecBase.java Mon Jan 4 20:22:48 2016
@@ -92,7 +92,7 @@ public abstract class CookieSpecBase ext
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);