Skip to content

Commit de7ed62

Browse files
committed
[Core] Xmlrpc: Add documentation to the function and remove debug print.
1 parent b859cd0 commit de7ed62

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

autoload/webapi/xmlrpc.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ function! s:to_fault(dom)
162162
return faultCode.":".faultString
163163
endfunction
164164

165+
"add_node_params
166+
"Add list of args on the xml tree.
167+
"input: list of args
168+
"output: none
165169
function! s:add_node_params(args)
166170
let params = webapi#xml#createElement("params")
167171
for Arg in a:args
@@ -185,7 +189,6 @@ function! webapi#xmlrpc#call(uri, func, args)
185189
s:add_node_params(args)
186190
endif
187191
let xml = iconv(methodCall.toString(), &encoding, "utf-8")
188-
echo xml
189192
let res = webapi#http#post(a:uri, xml, {"Content-Type": "text/xml"})
190193
let dom = webapi#xml#parse(res.content)
191194
if len(dom.find('fault'))

0 commit comments

Comments
 (0)