Skip to content

Commit ed79256

Browse files
use https
1 parent ef1be30 commit ed79256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/query.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ url_gen <- function(language, project, domain = NULL, ...){
5050
if(is.null(domain)){
5151
#Commons and Wikispecies have different URL formats, so those have to be handled in a hinky way.
5252
if(project %in% c("commons","species")){
53-
url <- sprintf("http://%s.wikimedia.org/w/api.php", project)
53+
url <- sprintf("https://%s.wikimedia.org/w/api.php", project)
5454
} else {
55-
url <- sprintf("http://%s.%s.org/w/api.php", language, project)
55+
url <- sprintf("https://%s.%s.org/w/api.php", language, project)
5656
}
5757
} else {
58-
url <- sprintf("http://%s/w/api.php", domain)
58+
url <- sprintf("https://%s/w/api.php", domain)
5959
}
6060

6161
#Return

0 commit comments

Comments
 (0)