Skip to content

Commit

Permalink
Doc fix
Browse files Browse the repository at this point in the history
`req_body_file()` does not detect mime type from extension (probably because it's rarely needed?)
  • Loading branch information
hadley committed Sep 30, 2024
1 parent 5380f21 commit 921b610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions R/req-body.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
#' Adding a body to a request will automatically switch the method to POST.
#'
#' @inheritParams req_perform
#' @param type MIME content type. You shouldn't generally need to specify this as
#' the defaults are usually pretty good, e.g. `req_body_file()` will guess it
#' from the extension of of `path`. Will be ignored if you have manually set
#' @param type MIME content type. Will be ignored if you have manually set
#' a `Content-Type` header.
#' @returns A modified HTTP [request].
#' @examples
Expand Down
4 changes: 1 addition & 3 deletions man/req_body.Rd

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

0 comments on commit 921b610

Please sign in to comment.