Skip to content

Commit

Permalink
Merge pull request parse-community#450 from ParsePlatform/fosco.noBody
Browse files Browse the repository at this point in the history
Remove _noBody from Unity SDK request.
  • Loading branch information
gfosco committed Feb 17, 2016
2 parents c4ecba2 + 6a88a81 commit 6f29493
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 6f29493

Please sign in to comment.