Skip to content

Commit 77f8b3f

Browse files
committed
Fix invalid s:add_node_params() calling.
1 parent 4fc927b commit 77f8b3f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

autoload/webapi/xmlrpc.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ function! s:add_node_params(args)
176176
call add(params.child, param)
177177
unlet Arg
178178
endfor
179-
call add(methodCall.child, params)
180-
return
179+
return params
181180
endfunction
182181

183182
function! webapi#xmlrpc#call(uri, func, args)
@@ -186,7 +185,7 @@ function! webapi#xmlrpc#call(uri, func, args)
186185
call methodName.value(a:func)
187186
call add(methodCall.child, methodName)
188187
if !empty(a:args)
189-
s:add_node_params(args)
188+
call add(methodCall.child, s:add_node_params(a:args))
190189
endif
191190
let xml = iconv(methodCall.toString(), &encoding, "utf-8")
192191
let res = webapi#http#post(a:uri, xml, {"Content-Type": "text/xml"})

0 commit comments

Comments
 (0)