diff options
| author | moteus <mimir@newmail.ru> | 2013-05-27 12:45:09 +0400 |
|---|---|---|
| committer | moteus <mimir@newmail.ru> | 2013-05-27 12:45:09 +0400 |
| commit | 920bc9762954454468d056a61391635cbd849406 (patch) | |
| tree | 048c112f95fa578d239ae3e35b2aec0a482f0c23 /src/headers.lua | |
| parent | bd51d8c1a5bb30e6a358dee6e85963f777edfff4 (diff) | |
| download | luasocket-920bc9762954454468d056a61391635cbd849406.tar.gz luasocket-920bc9762954454468d056a61391635cbd849406.tar.bz2 luasocket-920bc9762954454468d056a61391635cbd849406.zip | |
Build with Lua 5.2 without LUA_COMPAT_MODULE flag.
LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules.
Diffstat (limited to 'src/headers.lua')
| -rw-r--r-- | src/headers.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/headers.lua b/src/headers.lua index a293329..1eb8223 100644 --- a/src/headers.lua +++ b/src/headers.lua | |||
| @@ -3,9 +3,11 @@ | |||
| 3 | -- LuaSocket toolkit. | 3 | -- LuaSocket toolkit. |
| 4 | -- Author: Diego Nehab | 4 | -- Author: Diego Nehab |
| 5 | ----------------------------------------------------------------------------- | 5 | ----------------------------------------------------------------------------- |
| 6 | module("socket.headers") | 6 | local socket = require("socket") |
| 7 | socket.headers = {} | ||
| 8 | local _M = socket.headers | ||
| 7 | 9 | ||
| 8 | canonic = { | 10 | _M.canonic = { |
| 9 | ["accept"] = "Accept", | 11 | ["accept"] = "Accept", |
| 10 | ["accept-charset"] = "Accept-Charset", | 12 | ["accept-charset"] = "Accept-Charset", |
| 11 | ["accept-encoding"] = "Accept-Encoding", | 13 | ["accept-encoding"] = "Accept-Encoding", |
| @@ -98,3 +100,5 @@ canonic = { | |||
| 98 | ["www-authenticate"] = "WWW-Authenticate", | 100 | ["www-authenticate"] = "WWW-Authenticate", |
| 99 | ["x-mailer"] = "X-Mailer", | 101 | ["x-mailer"] = "X-Mailer", |
| 100 | } | 102 | } |
| 103 | |||
| 104 | return _M \ No newline at end of file | ||
