You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SERVERS.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -36,4 +36,22 @@ var Cookies = Cookies.withConverter({
36
36
});
37
37
```
38
38
39
-
Rack seems to have [a similar problem](https://github.com/js-cookie/js-cookie/issues/70#issuecomment-132503017).
39
+
Rack seems to have [a similar problem](https://github.com/js-cookie/js-cookie/issues/70#issuecomment-132503017).
40
+
41
+
## Tomcat 7.x
42
+
43
+
It seems that there is a situation where Tomcat does not [read the parens correctly](https://github.com/js-cookie/js-cookie/issues/92#issue-107743407). To fix this you need to write a custom write converter:
44
+
45
+
```javascript
46
+
var Cookies =Cookies.withConverter({
47
+
write:function (value) {
48
+
// Encode all characters according to the "encodeURIComponent" spec
49
+
returnencodeURIComponent(value)
50
+
// Revert the characters that are unnecessarly encoded but are
0 commit comments