temporarily disable addRawBody in Stripe code

This commit is contained in:
SachaG 2019-01-05 19:24:04 +09:00
parent cf4e78929c
commit e717902f42

View file

@ -424,7 +424,7 @@ const app = express();
// Add the raw text body of the request to the `request` object
function addRawBody(req, res, next) {
// req.setEncoding('utf8');
req.setEncoding('utf8');
var data = '';
@ -439,7 +439,8 @@ function addRawBody(req, res, next) {
});
}
app.use(addRawBody);
// TODO: re-enable
// app.use(addRawBody);
app.post('/stripe', async function(req, res) {