Automatically conversion to ascii codes in httr2?

Is there any way to tell req_url_query to not convert a , to a %2? I understand why it is doing but I am just wondering if there is a way to avoid it. I can do a workaround with req_url_path_append and maybe that is the canonical way of doing this.

thanks in advance

req <- request("")

# Change url components
two_queries <- c("one", "two")
collapsed_query <- paste0(two_queries, collapse = ",")

## automatically converts , to %2
req %>%
  req_url_query(q = collapsed_query)
#> <httr2_request>
#> GET
#> Body: empty

## keep comma
req %>%
#> <httr2_request>
#> GET,two
#> Body: empty

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.