Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control how spaces are handed in query strings #609

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hadley
Copy link
Member

@hadley hadley commented Dec 23, 2024

Fixes #432

Copy link
Contributor

@jonthegeek jonthegeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 typo (unless I'm missing reasoning behind the second %). This will definitely be useful! I can't remember which api it was for, but I definitely had to implement this in front of req_url_query() before!

@@ -60,12 +60,17 @@ req_url <- function(req, url) {
#' If none of these options work for your needs, you can instead supply a
#' function that takes a character vector of argument values and returns a
#' a single string.
#' @param .space How should spaces in query params be escaped? The default,
#' "percent", uses standard percent encoding (i.e. `%20%`), but you can opt-in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#' "percent", uses standard percent encoding (i.e. `%20%`), but you can opt-in
#' "percent", uses standard percent encoding (i.e. `%20`), but you can opt-in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to use + in req_url_query()
2 participants