From ed7925670e23494aa761b9b86ce4baec9f6bc544 Mon Sep 17 00:00:00 2001 From: yutannihilation Date: Wed, 20 Jul 2016 23:27:33 +0900 Subject: [PATCH] use https --- R/query.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/query.R b/R/query.R index 825127a..3483113 100644 --- a/R/query.R +++ b/R/query.R @@ -50,12 +50,12 @@ url_gen <- function(language, project, domain = NULL, ...){ if(is.null(domain)){ #Commons and Wikispecies have different URL formats, so those have to be handled in a hinky way. if(project %in% c("commons","species")){ - url <- sprintf("http://%s.wikimedia.org/w/api.php", project) + url <- sprintf("https://%s.wikimedia.org/w/api.php", project) } else { - url <- sprintf("http://%s.%s.org/w/api.php", language, project) + url <- sprintf("https://%s.%s.org/w/api.php", language, project) } } else { - url <- sprintf("http://%s/w/api.php", domain) + url <- sprintf("https://%s/w/api.php", domain) } #Return