diff --git a/lib/index.js b/lib/index.js index 99eb1102..cd818138 100644 --- a/lib/index.js +++ b/lib/index.js @@ -682,7 +682,9 @@ var Client = module.exports = function (config) { if (hasBody) { if (format === 'json') { query = JSON.stringify(query) - } else if (format !== 'raw') { + } else if (format === 'raw') { + query = msg.data + } else { query = query.join('&') } headers['content-length'] = Buffer.byteLength(query || '', 'utf8')