Skip to content

Changes required after translating code #1

@dimitrijemaric

Description

@dimitrijemaric

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
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions