Changed test URL to real URL

This commit is contained in:
Deniz Duezgoeren
2019-08-03 11:03:26 +02:00
parent 866b886840
commit 1106a71eff
+1 -1
View File
@@ -35,7 +35,7 @@ class DataFetcher {
func doAsync(do task: String, completionHandler: @escaping (_ substitutions: [Any]) -> ()) { func doAsync(do task: String, completionHandler: @escaping (_ substitutions: [Any]) -> ()) {
DispatchQueue(label: "work-queue").async { DispatchQueue(label: "work-queue").async {
let foodUrl = "https://djd4rkn355.github.io/food.html" let foodUrl = "https://djd4rkn355.github.io/food.html"
let url = "https://djd4rkn355.github.io/subst_test.html" let url = "https://djd4rkn355.github.io/subst.html"
Alamofire.request(url).responseString { response in Alamofire.request(url).responseString { response in
if let html = response.result.value { if let html = response.result.value {
Alamofire.request(foodUrl).responseString { response in Alamofire.request(foodUrl).responseString { response in