Skip to content

Commit

Permalink
Remove _noBody from Unity SDK request.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfosco committed Feb 16, 2016
1 parent b1a9536 commit 6a88a81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 6a88a81

Please sign in to comment.