diff --git a/lib/server/proxy.js b/lib/server/proxy.js index c58ff416..8ca69cc9 100644 --- a/lib/server/proxy.js +++ b/lib/server/proxy.js @@ -77,7 +77,11 @@ function proxy(req, res, callback) { }; if (Object.keys(req.body).length > 0) { - proxyReqData.form = req.body; + if (req.get("content-type") === "application/json") { + proxyReqData.body = JSON.stringify(req.body); + } else { + proxyReqData.form = req.body; + } } // Attempt to catch any sync errors