• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSHTTPCookieStorage no longer stores cookies with empty paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: URLSession on iOS 10
  • Next by Date: How do I find the device's Bonjour hostname?
  • Previous by thread: Re: URLSession on iOS 10
  • Next by thread: How do I find the device's Bonjour hostname?
  • Index(es):
    • Date
    • Thread