Software /
code /
prosody
Diff
net/http.lua @ 1112:e8a00a2ea910
Merge with 0.4
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 04 May 2009 19:57:05 +0100 |
parent | 1037:cb5fdce8dcec |
parent | 1111:a1cf1d623695 |
child | 1331:4443309b5528 |
line wrap: on
line diff
--- a/net/http.lua Sun May 03 17:24:57 2009 +0100 +++ b/net/http.lua Mon May 04 19:57:05 2009 +0100 @@ -15,7 +15,6 @@ local log = require "util.logger".init("http"); local print = function () end -local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber("0x"..k)); return t[k]; end }); local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end module "http"