Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/M3nin0/sits into reg-bdc-tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
M3nin0 committed Jan 31, 2025
2 parents f62bfb6 + a08dbd9 commit 5504856
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Suggests:
gdalcubes (>= 0.7.0),
geojsonsf,
ggplot2,
httr2,
httr2 (>= 1.1.0),
jsonlite,
kohonen (>= 3.0.11),
methods,
Expand Down
2 changes: 1 addition & 1 deletion R/api_cube.R
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,7 @@ NULL
# check that token is valid
.check_that(.has(res_content))
# parse token
token_parsed <- .url_parse(paste0("?", res_content[["token"]]))
token_parsed <- .url_parse_query(res_content[["token"]])
file_info[["path"]] <- purrr::map_chr(seq_along(fi_paths), function(i) {
path <- fi_paths[[i]]
if (are_local_paths[[i]]) {
Expand Down
13 changes: 13 additions & 0 deletions R/api_request_httr2.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,19 @@
httr2::url_parse(url)
}

#' @title Parse URL
#' @name .url_parse_query
#' @keywords internal
#' @noRd
#' @author Felipe Carvalho, \email{felipe.carvalho@@inpe.br}
#'
#' @param url A character with URL query string.
#'
#' @return An character vector with parsed URL query string.
.url_parse_query <- function(url) {
httr2::url_parse(url)
}

#' @title Build an URL
#' @name .url_build
#' @keywords internal
Expand Down

0 comments on commit 5504856

Please sign in to comment.