aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-01-05 06:26:49 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-01-05 06:26:49 +0500
commit1850c45665c6b5d4ccf4fd5138922db386a190e9 (patch)
tree5d0ca879736ef213de4b7f3b7467cfa3c4e957d1 /net/httpserver.lua
parent5e1f81a522812ebef0622a20b54a1add2c647cba (diff)
downloadprosody-1850c45665c6b5d4ccf4fd5138922db386a190e9.tar.gz
prosody-1850c45665c6b5d4ccf4fd5138922db386a190e9.zip
net.httpserver: Changed an unnecessary global access.
Diffstat (limited to 'net/httpserver.lua')
-rw-r--r--net/httpserver.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/httpserver.lua b/net/httpserver.lua
index 4be62ced..6fd9b65e 100644
--- a/net/httpserver.lua
+++ b/net/httpserver.lua
@@ -20,7 +20,7 @@ local t_insert, t_concat = table.insert, table.concat;
local s_match, s_gmatch = string.match, string.gmatch;
local tonumber, tostring, pairs, ipairs, type = tonumber, tostring, pairs, ipairs, type;
-local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end
+local urlencode = function (s) return s and (s:gsub("%W", function (c) return ("%%%02x"):format(c:byte()); end)); end
local log = require "util.logger".init("httpserver");