We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In OAuthSwiftClient.swift class:
in request function if the url contains latin chars, NSURL crashes. I fix and paste below
func request(url: String, method: String, parameters: Dictionary<String, AnyObject>, success: OAuthSwiftHTTPRequest.SuccessHandler?, failure: OAuthSwiftHTTPRequest.FailureHandler?) { if let url = NSURL(string: url.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!) { let request = OAuthSwiftHTTPRequest(URL: url, method: method, parameters: parameters) if self.credential.oauth2 { request.headers = ["Authorization": "Bearer \(self.credential.oauth_token)"] } else { request.headers = ["Authorization": OAuthSwiftClient.authorizationHeaderForMethod(method, url: url, parameters: parameters, credential: self.credential)] } request.successHandler = success request.failureHandler = failure request.dataEncoding = dataEncoding request.encodeParameters = true request.start() } }
thanks for the library, it rocks
The text was updated successfully, but these errors were encountered:
PR #71 opened
Sorry, something went wrong.
3ea260a
Merge pull request #71 from phimage/fix-urlunwraping
6a3ba1e
Fix #70: use `let` on `NSURL` instead of force unwrapping
No branches or pull requests
In OAuthSwiftClient.swift class:
in request function if the url contains latin chars, NSURL crashes. I fix and paste below
thanks for the library,
it rocks
The text was updated successfully, but these errors were encountered: