Skip to content

Commit

Permalink
fix request for security
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Oct 20, 2023
1 parent e344eec commit b0e3849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils-requests.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#' - `fetch_layer_metadata()` returns a list object
#' - `count_features()` returns a scalar integer
fetch_layer_metadata <- function(request, token) {
req_url <- httr2::req_url_query(
req_url <- httr2::req_body_form(
request,
f = "json",
token = token
Expand All @@ -52,7 +52,7 @@ fetch_layer_metadata <- function(request, token) {
#' @name requests
count_features <- function(request, token) {

req_url <- httr2::req_url_query(
req_url <- httr2::req_body_form(
httr2::req_url_path_append(request, "query"),
returnCountOnly = "true",
where = "1 = 1",
Expand Down

0 comments on commit b0e3849

Please sign in to comment.