From 8d44aec26e903a59cf926838db2748ba9c7dc9c8 Mon Sep 17 00:00:00 2001 From: Maximilian Girlich Date: Tue, 15 Aug 2023 07:44:54 +0000 Subject: [PATCH] Fix workaround --- R/req-body.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/req-body.R b/R/req-body.R index 83aebb68..14873e0d 100644 --- a/R/req-body.R +++ b/R/req-body.R @@ -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") {