Browse Source

Merge pull request #187 from johnbeynon/patch-1

Update README.md
Mattt Thompson 11 năm trước cách đây
mục cha
commit
66fde65b6e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      README.md

+ 2 - 2
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")