Skip to content

Commit ef1be30

Browse files
authored
remove startswith
1 parent 014c1b8 commit ef1be30

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

R/query.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ query <- function(url, out_class, clean_response = FALSE, query_param = list(),
2121
query_param$format <- "json"
2222
}
2323

24-
# Add http scheme if url has no scheme
25-
if(!any(startsWith(url, c("http://", "https://")))) {
26-
url <- paste0("http://", url)
27-
}
28-
2924
args <- list(...)
3025
if(length(args) > 0 && "config" %in% class(args[[1]]) && "useragent" %in% names(args[[1]])){
3126
response <- httr::GET(url, query = query_param, ...)
@@ -81,4 +76,4 @@ response_parse <- function(response, out_class){
8176
#Return
8277
return(parsed_text)
8378

84-
}
79+
}

0 commit comments

Comments
 (0)