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
Adding Headers with ephemeralSessionConfiguration() #692
Comments
I just added some tests in 10f9478 to verify that this is working as expected. The tests are passing without any issues on iOS 9. I currently have an Xcode 7 issue where none of my iOS 8 simulators are working so I can't verify the tests there. Could you provide some additional details around your issue?
Also, you should be adding the headers to the configuration before you create the |
@cnoon With the latest tests you added, Carthage can't compile Alamofire anymore because
Interestingly I am using 10.10.5 and Xcode 7b5 toolchain when using |
Thank you for helping out.
I previously just imported Alamofire.swift file into the project but that did not work so it led to install Cocoapods (thought that this would solve the issue, but that was not the case). Some more information:
The result I get is:
|
So I managed to get the result by retaining the 'manager' as explained in #157 However, I still have that caching problem which was the initial problem that led me to use customer Manager. I am using ephemeralSessionConfiguration(), but the request is still stored. Details points:
Thank you! |
Thanks for pointing the issue out @tkrajacic. I fixed the issue in bf86ff5. The fix was terrible to get right. The |
@Jeanblanc88 I'm glad you figured out your As for your issue now, using an ephemeral background session does not disable caching. It only switches it over to using in-memory caching. To disable caching, you should set the URLCache property on the I'm going to close this issue out since it has been resolved. If you have any further issues with the caching behavior, I'd encourage you to open a question on Stack Overflow. |
Hi,
I am using the code you are suggesting on both:
The problem is that mixing both (adding query to ephemeral sessions), does not work. I checked :
Doing this does not add the header.
Is there something I am missing?
The text was updated successfully, but these errors were encountered: