Adds X-Parse-Push-Status-Id header (#1412)

* Adds X-Parse-Push-Status-Id header

* Waits for _PushStatus to be stored
This commit is contained in:
Florent Vilmart
2016-04-07 18:08:09 -04:00
parent cedac3fda6
commit bc96f0beb1
5 changed files with 29 additions and 10 deletions

View File

@@ -178,6 +178,11 @@ function makeExpressHandler(promiseHandler) {
return res.send('Found. Redirecting to '+result.location);
}
}
if (result.headers) {
Object.keys(result.headers).forEach((header) => {
res.set(header, result.headers[header]);
})
}
res.json(result.response);
}, (e) => {
log.verbose('error:', e);