NSHTTPCookieStorage no longer stores cookies with empty paths
NSHTTPCookieStorage no longer stores cookies with empty paths
- Subject: NSHTTPCookieStorage no longer stores cookies with empty paths
- From: Jens Alfke <email@hidden>
- Date: Mon, 19 Dec 2016 10:38:19 -0800
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden