diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-14 04:29:23 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-06-14 04:29:23 +0000 |
commit | 65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3 (patch) | |
tree | f6e3f1a31451281ac2a347c3080e9749456dac29 /src/smtp.lua | |
parent | 8b114f3bf4ccea3b065551fa94649a9e45935b5b (diff) | |
download | luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.tar.gz luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.tar.bz2 luasocket-65c35845c54c7f84b1cf5b0e3d4c7bbdaf1014e3.zip |
Working on the manual.
Diffstat (limited to 'src/smtp.lua')
-rw-r--r-- | src/smtp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smtp.lua b/src/smtp.lua index 944a40f..6850f7f 100644 --- a/src/smtp.lua +++ b/src/smtp.lua | |||
@@ -8,7 +8,7 @@ | |||
8 | ----------------------------------------------------------------------------- | 8 | ----------------------------------------------------------------------------- |
9 | -- Declare module and import dependencies | 9 | -- Declare module and import dependencies |
10 | ----------------------------------------------------------------------------- | 10 | ----------------------------------------------------------------------------- |
11 | local base = require("base") | 11 | local base = _G |
12 | local coroutine = require("coroutine") | 12 | local coroutine = require("coroutine") |
13 | local string = require("string") | 13 | local string = require("string") |
14 | local math = require("math") | 14 | local math = require("math") |
@@ -216,7 +216,7 @@ local function adjust_headers(mesgt) | |||
216 | end | 216 | end |
217 | lower["date"] = lower["date"] or | 217 | lower["date"] = lower["date"] or |
218 | os.date("!%a, %d %b %Y %H:%M:%S ") .. (mesgt.zone or ZONE) | 218 | os.date("!%a, %d %b %Y %H:%M:%S ") .. (mesgt.zone or ZONE) |
219 | lower["x-mailer"] = lower["x-mailer"] or socket.VERSION | 219 | lower["x-mailer"] = lower["x-mailer"] or socket._VERSION |
220 | -- this can't be overriden | 220 | -- this can't be overriden |
221 | lower["mime-version"] = "1.0" | 221 | lower["mime-version"] = "1.0" |
222 | mesgt.headers = lower | 222 | mesgt.headers = lower |