tomasguisasola / luasoap

LuaSOAP provides a very simple API that convert Lua tables to and from XML documents
57 stars 18 forks source link

Don't mess with args in the encode function #10

Closed sje397 closed 8 years ago

sje397 commented 8 years ago

This fixes a bug in the encode function which changes the content of the 'method' field (prepending the internal_namespace value). This prevents multiple calls to encode with the same args table. You may want this if you want to e.g. call 'encode' on the table and log the output, then pass the table to 'client.call'.