Skip to content

Commit

Permalink
Fix workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Aug 15, 2023
1 parent 24997de commit 8d44aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/req-body.R
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ req_body_apply <- function(req) {
req <- req_body_apply_raw(req, data)
} else if (type == "json") {
# FIXME temporary workaround just for testing purposes. Remove before merging!
# content_type <- "application/json"
content_type <- 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 8d44aec

Please sign in to comment.