diff options
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 | ||
