keystonejs/keystone-classic

Can keystone provide rawBody in request

Open

#4294 aperta il 16 mag 2017

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (2288 fork)batch import
feature requesthelp wanted

Metriche repository

Star
 (14.656 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

I need access to raw body from incoming requests. It should be very easy to do, just add the following to bindBodyParser.js line 9:

bodyParserParams.verify = function(request, response, buffer) { request.rawBody = buffer.toString(); };

Thanks!

Guida contributor