Explorar o código

Modified the URLRequest convenience method to return a mutable NSURLRequest.

Christian Noon %!s(int64=10) %!d(string=hai) anos
pai
achega
07cb212a01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/Alamofire.swift

+ 1 - 1
Source/Alamofire.swift

@@ -87,7 +87,7 @@ extension NSURLRequest: URLRequestConvertible {
 
 // MARK: - Convenience
 
-func URLRequest(method: Method, URL: URLStringConvertible) -> NSURLRequest {
+func URLRequest(method: Method, URL: URLStringConvertible) -> NSMutableURLRequest {
     let mutableURLRequest = NSMutableURLRequest(URL: NSURL(string: URL.URLString)!)
     mutableURLRequest.HTTPMethod = method.rawValue