diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-04 19:57:05 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-04 19:57:05 +0100 |
commit | 2fff09895975e5b2fb3d0aee38c2f652c6029e15 (patch) | |
tree | f0e16c01357473480d90a6d4726094fbb3aa30ec /net/httpserver.lua | |
parent | 9817a326507ae8127365578adfac7a9074fe48c1 (diff) | |
parent | ef5e994b1f4303d7940194fc980f5b5e94654c76 (diff) | |
download | prosody-2fff09895975e5b2fb3d0aee38c2f652c6029e15.tar.gz prosody-2fff09895975e5b2fb3d0aee38c2f652c6029e15.zip |
Merge with 0.4
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r-- | net/httpserver.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua index 0ecf84ea..12328b29 100644 --- a/net/httpserver.lua +++ b/net/httpserver.lua @@ -8,10 +8,9 @@ local connlisteners_get = require "net.connlisteners".get; local listener; local t_insert, t_concat = table.insert, table.concat; -local s_match, s_gmatch, s_char = string.match, string.gmatch; +local s_match, s_gmatch = string.match, string.gmatch; local tonumber, tostring, pairs = tonumber, tostring, pairs; -local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = s_char(tonumber("0x"..k)); return t[k]; end }); local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%x", c:byte()); end)); end local log = require "util.logger".init("httpserver"); |