-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSURLConnection cookies #10
Comments
Thanks for posting this issue! I will look into it ASAP I recently added Unit Tests to By the way, feel free to send me a pull request with some Unit Test for your case with cookies if you can, this would be a great addition to extend test coverage and would allow me to directly use it to check if your specific case is solved by my future solution :) |
My last commit should have fixed the issue regarding cookies, but don't hesitate to try it and check that it fixed your use case correctly and keep me posted about it. Thx! |
Thank you! That fixed my tests. Thanks for the great support. |
You're welcome, and thanks for the feedback ;) (Just commited again a small fix for my previous commit, don't forget to pull it) |
On iOS, NSURLConnection can (and does) save cookies sent in an HTTP response into storage automatically.
However, using OHHTTPStubs, this does not happen.
I'm setting the cookie with:
The NSURLConnection object is constructed simply with
The NSURLConnectionDataDelegate methods are called similarly to what happens with a real connection, so I'm not sure what the cause is.
If there is an architectural reason (that is, the iOS APIs just don't allow OHHTTPStubs to do this), feel free to close this issue.
Thanks for the (otherwise 😄) great library!
The text was updated successfully, but these errors were encountered: