diff --git a/lib/helpers/call.js b/lib/helpers/call.js index 969ad1a..4a73769 100644 --- a/lib/helpers/call.js +++ b/lib/helpers/call.js @@ -43,7 +43,7 @@ module.exports = function call(_config, _assert, _test, _responses) { if (data && typeof data === 'object') { data = require('querystring').stringify(data); - if (req.method === 'POST') { + if (req.method === 'POST' || req.method === 'PUT') { headers['content-type'] = headers['content-type'] || 'application/x-www-form-urlencoded'; } }