NSHTTPCookieStorage no longer stores cookies with empty paths
Some of our unit tests have started failing on iOS 10.1.2 and macOS 10.12.2 — we tracked this down to a change in the behavior of NSHTTPCookieStorage. A cookie whose path is an empty string used to be added to the cookie storage, but now is not. [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookie: [NSHTTPCookie cookieWithProperties: @{ NSHTTPCookieName: @"cookie1", NSHTTPCookieDomain: @"mycookie.com", NSHTTPCookiePath: @"", NSHTTPCookieValue: @"sweet", }]]; After running that expression, there are no cookies registered for "http://mycookie.com”, in recent OS updates. Is this an intentional change or a regression? —Jens _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jens Alfke