I\'m trying to make a GET request with Alamofire in Swift. I need to set the following headers:
Content-Type: application/json Accept: application/json
Try this:
URLRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") URLRequest.setValue("application/json", forHTTPHeaderField: "Accept")