keystonejs/keystone-classic

Can keystone provide rawBody in request

Open

#4,294 opened on May 16, 2017

 (0 comments) (0 reactions) (0 assignees)JavaScript (2,288 forks)batch import
feature requesthelp wanted

Repository metrics

Stars
 (14,656 stars)
PR merge metrics
 (PR metrics pending)

Description

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!

Contributor guide