Skip to content

Commit

Permalink
Properly redirect POST requests with the original body.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Apr 23, 2024
1 parent fefa204 commit ea1b0bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dump_request <- function(staging, url, action, payload) {
req <- request(paste0(url, "/new/", basename(actual)))
req <- req_method(req, "POST")
req <- handle_error(req)
req <- req_options(req, postredir=7) # see https://curl.se/libcurl/c/CURLOPT_POSTREDIR.html.
res <- req_perform(req)
resp_body_json(res)
}

0 comments on commit ea1b0bc

Please sign in to comment.