title: Empty request body in swift
body: <p>I'm having issues sending a post request to my api.
  Both my iphone and my computer are on the same network, so I access the api the local public ip
  In my app I set the App transport security to allow arbitrary urls.
  The issue is the body is always empty.
  I tried creating a localtunnel so I can access it via https but the body is till empty.</p>
  
  <p>Here is my call</p>
  
  <pre><code>import UIKit
  import Alamofire
  
  class ViewController: UIViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
          let parameters: Parameters = [
              "foo": "bar",
              "baz": ["a", 1],
              "qux": [
                  "x": 1,
                  "y": 2,
                  "z": 3
              ]
          ]
          let headers: HTTPHeaders = [
              "Authorization": "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==",
              "Accept": "application/json"
          ]
          Alamofire.request("my-url", method: .post, parameters: parameters, headers: headers  ).responseJSON { (response) in
              debugPrint(response.result)
          }            
      }
  
  
  }
  </code></pre>
  
  <p>Any idea how to fix this?</p>