Skip to content

Commit

Permalink
Merge pull request Alamofire#187 from johnbeynon/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
mattt committed Oct 21, 2014
2 parents 8e2e525 + 679c744 commit 66fde65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,8 @@ enum Router: URLRequestConvertible {

var URLRequest: NSURLRequest {
let URL = NSURL(string: Router.baseURLString)
let mutableURLRequest = NSMutableURLRequest(URL: URL.URLByAppendingPathComponent(path))
mutableURLRequest.HTTPMethod = method.toRaw()
let mutableURLRequest = NSMutableURLRequest(URL: URL!.URLByAppendingPathComponent(path))
mutableURLRequest.HTTPMethod = method.rawValue

if let token = Router.OAuthToken {
mutableURLRequest.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
Expand Down

0 comments on commit 66fde65

Please sign in to comment.