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\","+