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

Update phantom httr references from httr to httr2. #383

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update phantom httr references from httr to httr2.
The libcurl version updated when I reknitted README.Rmd. It made me notice that you'll want to be sure to reknit the README after the version gets bumped to pick up the proper version in the User-Agent, which I don't think is a normal part of the checklist.
  • Loading branch information
jonthegeek committed Nov 10, 2023
commit a27588443d92bb5fa551f9afb3f4ccb8e7c8740b
2 changes: 1 addition & 1 deletion R/req-headers.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param ... <[`dynamic-dots`][rlang::dyn-dots]> Name-value pairs of headers
#' and their values.
#'
#' * Use `NULL` to reset a value to httr's default
#' * Use `NULL` to reset a value to httr2's default
#' * Use `""` to remove a header
#' * Use a character vector to repeat a header.
#' @param .redact Headers to redact. If `NULL`, the default, the added headers
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ httr2 (pronounced hitter2) is a ground-up rewrite of [httr](https://httr.r-lib.o

## Installation

You can install httr from CRAN with:
You can install httr2 from CRAN with:

``` r
install.packages("httr2")
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and more).

## Installation

You can install httr from CRAN with:
You can install httr2 from CRAN with:

``` r
install.packages("httr2")
Expand Down Expand Up @@ -76,7 +76,7 @@ And see exactly what httr2 will send to the server with `req_dry_run()`:
req %>% req_dry_run()
#> GET / HTTP/1.1
#> Host: r-project.org
#> User-Agent: httr2/0.2.3.9000 r-curl/5.1.0 libcurl/8.1.2
#> User-Agent: httr2/0.2.3.9000 r-curl/5.1.0 libcurl/8.3.0
#> Accept: */*
#> Accept-Encoding: deflate, gzip
```
Expand Down
2 changes: 1 addition & 1 deletion man/req_headers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading