title: Alamofire Post Request is not Executed
body: <p>I'm making a POST Request to my API. All of a sudden the request is being skipped. I have tried to debug into it, but until now without success.</p>
  
  <p>This is my request:</p>
  
  <pre><code>@IBAction func checkLogin(_ sender: Any) {
      guard let managedContext = self.managedObjectContext else { return }
  
      let user = NSEntityDescription.insertNewObject(forEntityName: User.identifier, into: managedContext) as! User
  
      let url = ""
  
      let parameters: Parameters =
          ["username" : usernameTextField.text!, "password" : passwordTextField.text!]
  
  
       Alamofire.request(url, method: .post, parameters: parameters, encoding: URLEncoding.default).responseJSON { (responseData) -&gt; Void in
  
          let results = JSON(responseData.result.value!)
          print(results)
  
          user.firstName = results["firstname"].string!
  
          let responseString : String = responseData.response?.allHeaderFields["Set-Cookie"] as! String
  
          if let range = responseString.range(of: ";"){
              let startIndex = (responseString.range(of: "="))
  
              let cookie = responseString[(startIndex?.upperBound)!...range.lowerBound]
              user.setValue(cookie, forKey: "token")
  
          }
      }  do {
          try self.dataController.saveContext()
      }catch {
          print("Save Error User")
      }
  </code></pre>
  
  <p>I'm Using Alamofire 4.5 with Swift 3.1.</p>