mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-10 05:39:19 +01: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() {
|
public String getValue() {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Cookie{" +
|
||||||
|
"'" + name + '\'' +
|
||||||
|
"='" + value + '\'' +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ public class JettyInternalRequest implements InternalRequest {
|
|||||||
if (!textCookies.isEmpty()) {
|
if (!textCookies.isEmpty()) {
|
||||||
String[] separated = new TextStringBuilder().appendWithSeparators(textCookies, ";").build().split(";");
|
String[] separated = new TextStringBuilder().appendWithSeparators(textCookies, ";").build().split(";");
|
||||||
for (String textCookie : separated) {
|
for (String textCookie : separated) {
|
||||||
cookies.add(new Cookie(textCookie));
|
cookies.add(new Cookie(textCookie.trim()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cookies;
|
return cookies;
|
||||||
|
Loading…
Reference in New Issue
Block a user