supporting multipart requests

This commit is contained in:
Simon Martín 2018-05-03 18:32:15 +02:00
parent af4c5906c8
commit 7e71f8dc3b

View File

@ -48,6 +48,10 @@ assert.response = function(server, req, res, callback) {
requestParams.body = req.body || req.data; requestParams.body = req.body || req.data;
} }
if (req.formData) {
requestParams.formData = req.formData;
}
debug('Request params', requestParams); debug('Request params', requestParams);
request(requestParams, function assert$response$requestHandler(error, response, body) { request(requestParams, function assert$response$requestHandler(error, response, body) {
debug('Request response', error); debug('Request response', error);