mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-30 16:19:56 +08:00
Fix Cookie parsing when there are multiple cookies
This commit is contained in:
parent
49549a3233
commit
ff4187341a
@ -41,4 +41,12 @@ public class Cookie {
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Cookie{" +
|
||||
"'" + name + '\'' +
|
||||
"='" + value + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public class JettyInternalRequest implements InternalRequest {
|
||||
if (!textCookies.isEmpty()) {
|
||||
String[] separated = new TextStringBuilder().appendWithSeparators(textCookies, ";").build().split(";");
|
||||
for (String textCookie : separated) {
|
||||
cookies.add(new Cookie(textCookie));
|
||||
cookies.add(new Cookie(textCookie.trim()));
|
||||
}
|
||||
}
|
||||
return cookies;
|
||||
|
Loading…
Reference in New Issue
Block a user