title: https request with alamofire fails
body: <p>I am very new to swift and programming so it is probably foolish mistake. Anyways my code fails when I do the url request claiming HTTPS_REQUIRED althoge my url string seems to be fine even when I checked it manually in my browser </p>
  
  <p>I have tried adding the "App Transport Security Settings" key at plist file and it didn't work either.</p>
  
  <pre><code>func getImage(url : String){
  
      print(url)
      Alamofire.request(url, method: .get).responseJSON {
          response in
          if response.result.isSuccess {
              print(response.result.value)
          }
          else {
              print("Error \(response.result.error)")
              self.loadingLable.text = "Network Error"
          }
      }
  
  }
  
  //MARK:- Build the url request
  func constructUrlRequest(latitude : String, longitude : String) {
      urlComponets.scheme = "https"
      urlComponets.host = "api.nasa.gov"
      urlComponets.path = "/planetary/earth/imagery"
      urlComponets.queryItems = [
          URLQueryItem(name : "lon", value : longitude),
          URLQueryItem(name : "lat", value : latitude),
          URLQueryItem(name: "api_key", value: "DEMO_KEY")
      ]
      let urlString = urlComponets.url?.absoluteString
      getImage(url: urlString!)
  
  }
  </code></pre>
  
  <p>here is my console output:</p>
  
  <pre><code>longitude = -122.03051210999995, latitude = 37.33240904999999
  https://api.nasa.gov/planetary/earth/imagery?lon=-122.03051210999995&amp;lat=37.33240904999999&amp;api_key=DEMO_KEY
  Optional({
      error =     {
          code = "HTTPS_REQUIRED";
          message = "Requests must be made over HTTPS. Try accessing the API at: https://api.nasa.gov/planetary/earth/imagery/?lon=-122.03051210999995&amp;lat=37.33240904999999&amp;api_key=DEMO_KEY";
      };
  })
  </code></pre>