From 6a88a8101756c63aeb671f9fc37a49735720a8b2 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Tue, 16 Feb 2016 08:35:55 -0800 Subject: [PATCH] Remove _noBody from Unity SDK request. --- src/middlewares.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/middlewares.js b/src/middlewares.js index a07b2a1b11..7dcf8889a5 100644 --- a/src/middlewares.js +++ b/src/middlewares.js @@ -26,6 +26,12 @@ function handleParseHeaders(req, res, next) { restAPIKey: req.get('X-Parse-REST-API-Key') }; + if (req.body && req.body._noBody) { + // Unity SDK sends a _noBody key which needs to be removed. + // Unclear at this point if action needs to be taken. + delete req.body._noBody; + } + var fileViaJSON = false; if (!info.appId || !cache.apps[info.appId]) {