diff --git a/R/internal_functions.R b/R/internal_functions.R index 207ffd4..a5e44b3 100644 --- a/R/internal_functions.R +++ b/R/internal_functions.R @@ -52,6 +52,7 @@ .retry_download <- function(url, .f, .max_tries = 3L) { httr2::request(base_url = url) |> httr2::req_options(http_version = 2, timeout = 2000L) |> + httr2::req_user_agent("Mozilla/5.0") |> httr2::req_retry(max_tries = .max_tries) |> httr2::req_cache(path = tempdir()) |> httr2::req_progress() |>