mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
temporarily disable addRawBody in Stripe code
This commit is contained in:
parent
cf4e78929c
commit
e717902f42
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue