supporting multipart requests
This commit is contained in:
parent
af4c5906c8
commit
7e71f8dc3b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user