http.call: add version to user agent

master
Tim Niemueller 2010-09-15 11:25:18 -04:00
parent c50a904b56
commit 658a83b24d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ function call (url, method, ...)
source = ltn12.source.string (request_body),
sink = request_sink,
headers = {
["User-agent"] = "LuaXMLRPC",
["User-agent"] = xmlrpc._PKGNAME .. " " .. xmlrpc._VERSION,
["Content-type"] = "text/xml",
["content-length"] = tostring (string.len (request_body)),
},