提交 66fde65b 编写于 作者: M Mattt Thompson

Merge pull request #187 from johnbeynon/patch-1

Update README.md
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册