Skip to content

Commit 7a73bd2

Browse files
Change the variable names to make it clear what is for
1 parent 16a8b8c commit 7a73bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SERVER_SIDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ setrawcookie($name, rawurlencode($value));
2626
**In JavaScript**, use a custom converter:
2727

2828
```javascript
29-
var Cookies = Cookies.withConverter({
29+
var PHPCookies = Cookies.withConverter({
3030
write: function (value) {
3131
// Encode all characters according to the "encodeURIComponent" spec
3232
return encodeURIComponent(value)
@@ -51,7 +51,7 @@ Rack seems to have [a similar problem](https://github.com/js-cookie/js-cookie/is
5151
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:
5252

5353
```javascript
54-
var Cookies = Cookies.withConverter({
54+
var TomcatCookies = Cookies.withConverter({
5555
write: function (value) {
5656
// Encode all characters according to the "encodeURIComponent" spec
5757
return encodeURIComponent(value)

0 commit comments

Comments
 (0)