aboutsummaryrefslogtreecommitdiff
path: root/samples/cddb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'samples/cddb.lua')
-rw-r--r--samples/cddb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/cddb.lua b/samples/cddb.lua
index 883730c..49a1871 100644
--- a/samples/cddb.lua
+++ b/samples/cddb.lua
@@ -32,7 +32,7 @@ end
32local host = socket.dns.gethostname() 32local host = socket.dns.gethostname()
33local query = "%s?cmd=cddb+read+%s+%s&hello=LuaSocket+%s+LuaSocket+2.0&proto=6" 33local query = "%s?cmd=cddb+read+%s+%s&hello=LuaSocket+%s+LuaSocket+2.0&proto=6"
34local url = string.format(query, server, arg[1], arg[2], host) 34local url = string.format(query, server, arg[1], arg[2], host)
35local body, headers, code = http.get(url) 35local body, headers, code = http.request(url)
36 36
37if code == 200 then 37if code == 200 then
38 local data, code, error = parse(body) 38 local data, code, error = parse(body)