You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRMClient.swift file, line #144, after Xcode translated the code to latest swift version, has an issue.
"WWW-Authenticate" has to be replaced with "Www-Authenticate".
also had to access the response headers dictionary in a different way, this is what has worked for me:
let httpResponse = response as! HTTPURLResponse;
let authenticationHeaderDict = httpResponse.allHeaderFields as Dictionary
let authenticationHeaderValue = authenticationHeaderDict[AnyHashable("Www-Authenticate")]
var authenticationHeader = authenticationHeaderValue as! NSString
The text was updated successfully, but these errors were encountered:
I ran into this - if you cast httpResponse.allHeaderFields as an NSDictionary then you can use the key "WWW-Authenticate": (httpResponse.allHeaderFields as! NSDictionary)["WWW-Authenticate"]
CRMClient.swift file, line #144, after Xcode translated the code to latest swift version, has an issue.
"WWW-Authenticate" has to be replaced with "Www-Authenticate".
also had to access the response headers dictionary in a different way, this is what has worked for me:
The text was updated successfully, but these errors were encountered: