projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b5de954
)
net.httpserver: Changed an unnecessary global access.
author
Waqas Hussain
<waqas20@gmail.com>
Wed, 5 Jan 2011 01:26:49 +0000
(06:26 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Wed, 5 Jan 2011 01:26:49 +0000
(06:26 +0500)
net/httpserver.lua
patch
|
blob
|
history
diff --git
a/net/httpserver.lua
b/net/httpserver.lua
index 4be62ced61ab64110ebb374fe87e4a1d053a862f..6fd9b65eb63c008cb175612c7299a63a917a15a5 100644
(file)
--- 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 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");
local log = require "util.logger".init("httpserver");