aboutsummaryrefslogtreecommitdiff
path: root/test/testmesg.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2007-03-12 04:08:40 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2007-03-12 04:08:40 +0000
commitbe2e467929be9f27fbe92fe7b94783635c920c06 (patch)
tree94054e38f33178d805a6144d3bd9cb76da4a4c76 /test/testmesg.lua
parent8bf9fb51dd09fb066483247fccbfc979acc84071 (diff)
downloadluasocket-be2e467929be9f27fbe92fe7b94783635c920c06.tar.gz
luasocket-be2e467929be9f27fbe92fe7b94783635c920c06.tar.bz2
luasocket-be2e467929be9f27fbe92fe7b94783635c920c06.zip
Couple bug fixes.
Diffstat (limited to 'test/testmesg.lua')
-rw-r--r--test/testmesg.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/testmesg.lua b/test/testmesg.lua
index ab85c93..04305f4 100644
--- a/test/testmesg.lua
+++ b/test/testmesg.lua
@@ -12,7 +12,7 @@ source = smtp.message {
12 headers = { ['content-type'] = 'multipart/alternative' }, 12 headers = { ['content-type'] = 'multipart/alternative' },
13 body = { 13 body = {
14 [1] = { 14 [1] = {
15 headers = { ['content-type'] = 'text/html' }, 15 headers = { ['Content-type'] = 'text/html' },
16 body = "<html> <body> Hi, <b>there</b>...</body> </html>" 16 body = "<html> <body> Hi, <b>there</b>...</body> </html>"
17 }, 17 },
18 [2] = { 18 [2] = {
@@ -60,7 +60,7 @@ source = smtp.message{
60 -- chunks are loaded into memory and translation happens on the fly. 60 -- chunks are loaded into memory and translation happens on the fly.
61 [2] = { 61 [2] = {
62 headers = { 62 headers = {
63 ["content-type"] = 'image/png; name="luasocket.png"', 63 ["ConTenT-tYpE"] = 'image/png; name="luasocket.png"',
64 ["content-disposition"] = 'attachment; filename="luasocket.png"', 64 ["content-disposition"] = 'attachment; filename="luasocket.png"',
65 ["content-description"] = 'a beautiful image', 65 ["content-description"] = 'a beautiful image',
66 ["content-transfer-encoding"] = "BASE64" 66 ["content-transfer-encoding"] = "BASE64"
@@ -83,10 +83,10 @@ r, e = smtp.send{
83 "<diego@princeton.edu>" }, 83 "<diego@princeton.edu>" },
84 from = "<diego@princeton.edu>", 84 from = "<diego@princeton.edu>",
85 source = ltn12.source.chain(source, filter), 85 source = ltn12.source.chain(source, filter),
86 server = "mail.cs.princeton.edu", 86 --server = "mail.cs.princeton.edu",
87 --server = "localhost", 87 --port = 25
88 --port = 2525 88 server = "localhost",
89 port = 25 89 port = 2525
90} 90}
91 91
92print(r, e) 92print(r, e)