Commit 3ac8948b1c66a0ef2e9f1164e7bb11bfc2d731a1

Authored by Adhidarma Hadiwinoto
1 parent 8ea2305a03
Exists in master

Compact payload

Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff

lib/generic-xmlrpc/compose-payload.js
... ... @@ -8,11 +8,8 @@ const paramsIsArray = (methodName, params) => `<?xml version="1.0"?>
8 8 ${(params || []).map((param) => `
9 9 <member>
10 10 <name>${param.name}</name>
11   - <value>
12   - <${param.type || 'string'}>${param.value}</${param.type || 'string'}>
13   - </value>
14   - </member>
15   -
  11 + <value><${param.type || 'string'}>${param.value}</${param.type || 'string'}></value>
  12 + </member>
16 13 `).join('')}
17 14 </struct>
18 15 </value>