             let charset = CFStringConvertEncodingToIANACharSetName(CFStringConvertNSStringEncodingToEncoding(dataEncoding))
 
             let finalParameters : Dictionary<String, AnyObject>
-            switch (paramsLocation!) {
+            switch (paramsLocation) {
             case .AuthorizationHeader:
                 finalParameters = parameters.filter { key, _ in !key.hasPrefix("oauth_") }
             case .RequestURIQuery:

        self.init(URL: URL, method: .GET, parameters: [:])
    }

    init(URL: NSURL, method: Method, parameters: Dictionary<String, AnyObject>, paramsLocation : ParamsLocation? = .AuthorizationHeader) {
        self.URL = URL
        self.HTTPMethod = method
        self.headers = [:]

        self.timeoutInterval = 60
        self.HTTPShouldHandleCookies = false
        self.responseData = NSMutableData()
        self.paramsLocation = paramsLocation
    }

    init(request: NSURLRequest, paramsLocation : ParamsLocation = .AuthorizationHeader) {
        self.request = request as? NSMutableURLRequest
        self.URL = request.URL!
        self.HTTPMethod = Method(rawValue: request.HTTPMethod ?? "") ?? .GET
