aboutsummaryrefslogtreecommitdiff
path: root/src/headers.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/headers.lua')
-rw-r--r--src/headers.lua8
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-----------------------------------------------------------------------------
6module("socket.headers") 6local socket = require("socket")
7socket.headers = {}
8local _M = socket.headers
7 9
8canonic = { 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
104return _M \ No newline at end of file