aboutsummaryrefslogtreecommitdiffstats
path: root/net/http.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-04 19:53:31 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-04 19:53:31 +0100
commitef5e994b1f4303d7940194fc980f5b5e94654c76 (patch)
tree0ddd431bab32864392efcfe7e10f8b8927fe263a /net/http.lua
parentb46533a889c624354136fb78211aa233f0aa460c (diff)
downloadprosody-ef5e994b1f4303d7940194fc980f5b5e94654c76.tar.gz
prosody-ef5e994b1f4303d7940194fc980f5b5e94654c76.zip
net.http, net.httpserver: Remove urlcodes table... it really isn't needed (thanks Jan Harkes)
Diffstat (limited to 'net/http.lua')
-rw-r--r--net/http.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index 29da41ea..0910944e 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -15,7 +15,6 @@ local tonumber, tostring, pairs, xpcall, select, debug_traceback =
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"