Skip to content

Commit

Permalink
Try setting user-agent for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 7, 2024
1 parent 51de1d2 commit 9599142
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/internal_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -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() |>
Expand Down

0 comments on commit 9599142

Please sign in to comment.