Skip to content

Commit

Permalink
Remove workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Sep 1, 2023
1 parent f4b1766 commit cf1f435
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/req-body.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ req_body_apply <- function(req) {
} else if (type == "raw") {
req <- req_body_apply_raw(req, data)
} else if (type == "json") {
# FIXME temporary workaround just for testing purposes. Remove before merging!
content_type <- content_type %||% "application/json"
content_type <- "application/json"
json <- exec(jsonlite::toJSON, data, !!!req$body$params)
req <- req_body_apply_raw(req, json)
} else if (type == "multipart") {
Expand Down

0 comments on commit cf1f435

Please sign in to comment.