Software /
code /
prosody
Changeset
4005:420e57319f89
net.httpserver: Changed an unnecessary global access.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 05 Jan 2011 06:26:49 +0500 |
parents | 4004:c1b3ecbed6c0 |
children | 4006:32073a0fbcca |
files | net/httpserver.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/httpserver.lua Wed Jan 05 06:23:58 2011 +0500 +++ b/net/httpserver.lua Wed Jan 05 06:26:49 2011 +0500 @@ -20,7 +20,7 @@ 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");