Skip to content

Commit 59bda9d

Browse files
committed
Update api/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java
Added limit of 2 fields to split in parseCookie, to be able to handle cookies such as: Set-Cookie: PREF=ID=a3be7e468f2a528c:FF=0:TM=1347369...
1 parent ed98538 commit 59bda9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public static String parseCharset(String contentType) {
505505

506506
public static Cookie parseCookie(String value) {
507507
String[] fields = value.split(";\\s*");
508-
String[] cookie = fields[0].split("=");
508+
String[] cookie = fields[0].split("=", 2);
509509
String cookieName = cookie[0];
510510
String cookieValue = (cookie.length == 1) ? null : cookie[1];
511511

0 commit comments

Comments
 (0)