title: Authorization header using Alamofire
body: <p>I'm working with an API which puts an authorization key in the header, it works fine in Postman:</p>
  
  <p><a href="https://i.stack.imgur.com/q05UH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q05UH.png" alt="Postman snippet"></a></p>
  
  <p>And it's my code:</p>
  
  <pre><code>let url = Requests.listCities(withLanguage: .en)
          let headers: HTTPHeaders = [ "Authorization": "pmJAdo5N26WW74kCEy6RRvIdCScFCbAtKc2o0FNy"]
          Alamofire.request(url, method: .get, parameters: nil, encoding: URLEncoding.default, headers: headers)
              .validate(contentType: [MIMEType.JSON])
              .responseJSON {response in
                  completion(response)
          }
  </code></pre>
  
  <p>The response is:</p>
  
  <pre><code>SUCCESS: {
      error = Unauthorized;
      status = failed;
  }
  </code></pre>
  
  <p>Am I doing it wrong or is the <code>Authorization</code> omitted during the request?</p>
  
  <p>This is the request debug:</p>
  
  <pre><code>$ curl -v \
      -H "Accept-Language: en;q=1.0, ar-US;q=0.9" \
      -H "Authorization: pmJAdo5N26WW74kCEy6RRvIdCScFCbAtKc2o0FNy" \
      -H "User-Agent: skinup/1.0 (appname; build:1; iOS 10.3.1) Alamofire/4.5.0" \
      -H "Accept-Encoding: gzip;q=1.0, compress;q=0.5" 
  </code></pre>