Xcode 8.2 beta SetCookie is not working if NSHTTPCookiePath is empty

Dears,


I have downloaded new Xcode 8.2 Beta and and found setCookie is not working with NSHTTPCookiesStorage, if NSHTTPCookiePath attribute's value is empty. It was working fine till iOS sdk 10.1 (xcode 8.1).


Is it mandatory for a value to be not empty in NSHTTPCookiePath?


NSDictionary *dictCookie = @{NSHTTPCookieDomain:@"baseURLDomain.com",NSHTTPCookiePath:@"",NSHTTPCookieName:@"axes",NSHTTPCookieValue:@"adasd"};

NSHTTPCookie *myCookie = [NSHTTPCookie cookieWithProperties:dictCookie];

[[NSHTTPCookieStorage sharedHTTPCookieStorage]setCookie:myCookie];


WR,

Ram

the same

Thank you for pointing this out! I have found the same issue in my app, and couldn't for the life of me figure out why cookies werent being saved anymore. Awaiting response on why this changed, but will patch for now.

Xcode 8.2 beta SetCookie is not working if NSHTTPCookiePath is empty
 
 
Q