From 9599142632e62d16cfa4d155d4f5c612556b5121 Mon Sep 17 00:00:00 2001 From: "Adam H. Sparks" Date: Sat, 7 Dec 2024 14:01:57 +0800 Subject: [PATCH] Try setting user-agent for CI tests --- R/internal_functions.R | 1 + 1 file changed, 1 insertion(+) 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() |>