* Do not set Cookie version to 1 as this will cause
cookie values will be set in double quotes.
This commit is contained in:
parent
1dabbb6e55
commit
1c872e712c
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ public final class CookieTrans implements Serializable {
|
||||||
public Cookie getCookie(String defaultPath, String defaultDomain) {
|
public Cookie getCookie(String defaultPath, String defaultDomain) {
|
||||||
Cookie c = new Cookie(name, value);
|
Cookie c = new Cookie(name, value);
|
||||||
|
|
||||||
c.setVersion(1);
|
// NOTE: If cookie version is set to 1, cookie values will be quoted.
|
||||||
|
// c.setVersion(1);
|
||||||
|
|
||||||
if (days > -1) {
|
if (days > -1) {
|
||||||
// Cookie time to live, days -> seconds
|
// Cookie time to live, days -> seconds
|
||||||
|
|
Loading…
Add table
Reference in a new issue