Alamofire not sending the current headers (swift)
<p>I keep getting "error_type":"OAuthException","code":"41" when I using alamofire or even when i made it through to the server I got data from before header's authorisation. I think it keep sending same header, how to make sure that alamofire send the current headers?</p>

<pre><code>    let headers = ["Authorization" : "\(AccessToken) \(TokenType)"]
    print(headers)

    Alamofire.request(.GET, "url/profile/", headers: headers, encoding: .JSON).responseJSON { response in
        switch response.result {}
</code></pre>

<p><strong>EDIT</strong>
First, I use login API</p>

<pre><code>    let parameters = [
        "client_id": "\(Constant.clientId)",
        "client_secret": "\(Constant.clientSecret)",
        "response_type": "\(Constant.responseType)",
        "scope" : "\(Constant.scope)",
        "redirect_uri": "\(Constant.redirect)",
        "email": "\(email!)",
        "password": "\(pass!)"

    ]

    print(parameters)

    Alamofire.request(.POST, "http://url/login/", parameters: parameters, encoding: .JSON).responseJSON { response in
        switch response.result {
        case .Success:

            if let value = response.result.value {
                let json = JSON(value)
                print("JSON: \(json)")
                let accessToken = json["access_token"].string!
                let refreshToken = json["refresh_token"].string
                let tokenType = json["token_type"].string!
                let expiresIn = json["expires_in"].string
 }
</code></pre>

<p>And then, I use <code>accessToken</code> and <code>tokenType</code> for authorization</p>

<pre><code> if(refreshToken != nil)
                {
 let headersCust = ["Authorization" : "\(accessToken) \(tokenType)"]
                    print(headersCust)
Alamofire.request(.GET, "http://goodies.co.id/api/v1/customer/profile/", headers: headersCust, encoding: .JSON).responseJSON { response in {}
</code></pre>