Merge pull request #450 from ParsePlatform/fosco.noBody

Remove _noBody from Unity SDK request.
This commit is contained in:
Fosco Marotto
2016-02-17 11:47:25 -08:00

View File

@@ -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]) {