Skip to content

Commit 6f29493

Browse files
committed
Merge pull request #450 from ParsePlatform/fosco.noBody
Remove _noBody from Unity SDK request.
2 parents c4ecba2 + 6a88a81 commit 6f29493

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/middlewares.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ function handleParseHeaders(req, res, next) {
2626
restAPIKey: req.get('X-Parse-REST-API-Key')
2727
};
2828

29+
if (req.body && req.body._noBody) {
30+
// Unity SDK sends a _noBody key which needs to be removed.
31+
// Unclear at this point if action needs to be taken.
32+
delete req.body._noBody;
33+
}
34+
2935
var fileViaJSON = false;
3036

3137
if (!info.appId || !cache.apps[info.appId]) {

0 commit comments

Comments
 (0)