1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

ensure key names are consistent when parsing the cookie string since

cookie-keys are not case sensitive, but json-keys are.
This commit is contained in:
John J. Aylward 2020-05-26 09:11:10 -04:00
parent d334b58f45
commit 6029dece41
2 changed files with 8 additions and 4 deletions

View file

@ -84,7 +84,7 @@ public class CookieTest {
JSONObject jo = Cookie.toJSONObject(cookieStr);
assertTrue("has key 'name'", jo.has("name"));
assertTrue("has key 'value'", jo.has("value"));
assertTrue("has key 'myAttribute'", jo.has("myAttribute"));
assertTrue("has key 'myAttribute'", jo.has("myattribute"));
}
/**
@ -177,7 +177,7 @@ public class CookieTest {
"thisWont=beIncluded;"+
"secure";
String expectedCookieStr =
"{\"thisWont\":\"beIncluded\","+
"{\"thiswont\":\"beIncluded\","+
"\"path\":\"/\","+
"\"expires\":\"Wed, 19-Mar-2014 17:53:53 GMT\","+
"\"domain\":\".yahoo.com\","+