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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user