Skip to content

Commit

Permalink
change httr2 resp$response_headers to $headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Nov 18, 2023
1 parent 43d6f8d commit c01880c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/adapter-httr2.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build_httr2_response <- function(req, resp) {
if (grepl("^ftp://", resp$url %||% "")) { # in case uri_regex only
httr2_headers(list())
} else {
httr2_headers(resp$response_headers)
httr2_headers(resp$headers)
}
},
body = resp$body %||% resp$content,
Expand Down

0 comments on commit c01880c

Please sign in to comment.