Skip to content

Commit

Permalink
the response header may use lower-case location, not necessarily `L…
Browse files Browse the repository at this point in the history
…ocation` (this should fix #436)
  • Loading branch information
yihui committed Mar 13, 2024
1 parent 54eb1fd commit ba48597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ auto_repo = function() {
curlGetHeaders('https://mirror.ctan.org/systems/texlive/tlnet'),
error = function(e) character()
)
x = xfun::grep_sub('^location: ([^[:space:]]+)\\s*$', '\\1', x)
x = xfun::grep_sub('^location: ([^[:space:]]+)\\s*$', '\\1', x, ignore.case = TRUE)
x = tail(x, 1)
if (length(x) == 1) x else 'ctan'
}
Expand Down

0 comments on commit ba48597

Please sign in to comment.