Skip to content

Commit

Permalink
fix issue #45
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikbuhl committed Dec 6, 2024
1 parent e8d7a6c commit 189201f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils_httr2.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ resp_check_data <- function(resp) {

if (!(httr2::resp_content_type(resp) %in% c("application/zip", "text/csv", "application/json"))) {

stop("Encountered an invalid response type.",
stop(paste0("Encountered an invalid response type (", httr2::resp_content_type(resp), ")."),
call. = FALSE)

}

return <- httr2::resp_content_type(resp)
return(httr2::resp_content_type(resp))

}

Expand Down

0 comments on commit 189201f

Please sign in to comment.