Skip to content

Commit

Permalink
Merge pull request #11 from yutannihilation/use-https
Browse files Browse the repository at this point in the history
use https
  • Loading branch information
Ironholds committed Jul 20, 2016
2 parents ef1be30 + ed79256 commit 1797809
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/query.R
Expand Up @@ -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
Expand Down

0 comments on commit 1797809

Please sign in to comment.