From 1aa151ad3b78ea47b1c74a7dee712f97a7848651 Mon Sep 17 00:00:00 2001 From: Tomas Guisasola Date: Fri, 30 Mar 2007 04:17:14 +0000 Subject: [PATCH] Correcting previous mistake with var-arg calls --- src/http.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/http.lua b/src/http.lua index 42214c5..1862546 100755 --- a/src/http.lua +++ b/src/http.lua @@ -4,7 +4,7 @@ -- $Id$ --------------------------------------------------------------------- -local error, select, tonumber, tostring, unpack = error, select, tonumber, tostring, unpack +local error, tonumber, tostring, unpack = error, tonumber, tostring, unpack local ltn12 = require"ltn12" local request = require"socket.http".request @@ -22,9 +22,8 @@ module("xmlrpc.http") -- XML-RPC element). --------------------------------------------------------------------- function call (url, method, ...) - local n = select ('#', ...) local request_sink, tbody = ltn12.sink.table() - local request_body = xmlrpc.clEncode(method, unpack (..., 1, n)) + local request_body = xmlrpc.clEncode(method, ...) local err, code, headers, status = request { url = url, method = "POST",