Closed pushkarnk closed 6 years ago
Comment by Cary Miller (JIRA)
I'm almost finished building this out, but I'm stuck on how to handle the authenticationMethod argument in the description above. In Foundation on Darwin, no matter what string I throw at it, it seems to always output:
Auth-Scheme:NSURLAuthenticationMethodDefault
I don't understand how a given input String maps to the various NSURLAuthenticationMethods, or if they even do?
Any guidance would be appreciated.
Comment by Cary Miller (JIRA)
Nevermind, I seem to have figured it out, thanks!
Comment by Cary Miller (JIRA)
https://github.com/apple/swift-corelibs-foundation/pull/1607
Environment
LinuxAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Foundation | |Labels | Bug | |Assignee | cmilr (JIRA) | |Priority | Medium | md5: 13b9fa32310244d1ba0d11550336f74eIssue Description:
Output on macOS:
\<NSURLProtectionSpace: 0x7fa5bfea8620>: Host:apple.com, Server:http, Auth-Scheme:NSURLAuthenticationMethodDefault, Realm:(null), Port:80, Proxy:NO, Proxy-Type:(null)
Output on Linux:
\<URLProtectionSpace: 0x0000557e8e182100>