Skip to content

Commit

Permalink
More conditioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 23, 2024
1 parent 9b25cf7 commit db98d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parser.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ curl_parse_url <- function(url, baseurl = NULL, decode = TRUE, params = TRUE){
baseurl < as.character(baseurl)

# Workaround for #366
if(substr(url, 1, 1) == '#' && (compareVersion(curl_version()$version, "8.8.0") < 0)){
if(length(baseurl) && substr(url, 1, 1) == '#' && (compareVersion(curl_version()$version, "8.8.0") < 0)){
url <- sub('(#.*)?$', url, baseurl)
}

Expand Down

0 comments on commit db98d08

Please sign in to comment.