keystonejs/keystone-classic

Can keystone provide rawBody in request

Open

#4,294 opened on May 16, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (14,656 stars) (2,288 forks)batch import
feature requesthelp wanted

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

Can keystone provide rawBody in request · keystonejs/keystone-classic#4294 | Good First Issue