Skip to content

Commit

Permalink
remove cookies between requests
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonfreitas committed Jun 19, 2023
1 parent 9a4f1ab commit 664beec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

http_getter <- function(url, verbose = getOption("rbcb_verbose", default = FALSE)) {
h <- httr::handle("")
res <- GET(
url = url,
config = list(),
if (verbose) verbose(),
add_headers("User-Agent" = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36")
handle = h
)
if (status_code(res) != 200) {
msg <- sprintf("Request error %s\n", status_code(res))
Expand Down Expand Up @@ -82,4 +82,4 @@ http_download <- function(method = c("get", "post"), ...) {
#' options(rbcb_cache = FALSE)
#' options(rbcb_verbose = TRUE)
#' }
NULL
NULL

0 comments on commit 664beec

Please sign in to comment.