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:
parent
d334b58f45
commit
6029dece41
2 changed files with 8 additions and 4 deletions
|
@ -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\","+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue