diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 01:02:07 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 01:02:07 +0000 |
commit | d46f7a09a768b146f2f3cdc9a6a50357832bd1c7 (patch) | |
tree | d4f7ca1e677d06446245691d5ece6dab51915f16 /samples | |
parent | 843a431ef98fd541d98fd3898463985d9bfcde28 (diff) | |
download | luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.tar.gz luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.tar.bz2 luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.zip |
Fixed smtp.lua loading.
Adjusted tftp module.
Added some comments.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/cddb.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/cddb.lua b/samples/cddb.lua index 0ceba09..aefa04e 100644 --- a/samples/cddb.lua +++ b/samples/cddb.lua | |||
@@ -32,7 +32,7 @@ end | |||
32 | local host = socket.dns.gethostname() | 32 | local host = socket.dns.gethostname() |
33 | local query = "%s?cmd=cddb+read+%s+%s&hello=LuaSocket+%s+LuaSocket+2.0&proto=6" | 33 | local query = "%s?cmd=cddb+read+%s+%s&hello=LuaSocket+%s+LuaSocket+2.0&proto=6" |
34 | local url = string.format(query, server, arg[1], arg[2], host) | 34 | local url = string.format(query, server, arg[1], arg[2], host) |
35 | local body, headers, code, error = http.get(url) | 35 | local body, headers, code = http.get(url) |
36 | 36 | ||
37 | if code == 200 then | 37 | if code == 200 then |
38 | local data, code, error = parse(body) | 38 | local data, code, error = parse(body) |