diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-12-16 02:40:50 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-12-16 02:40:50 +0000 |
commit | e2d0d043df5adccb40575af6626535850d110cbb (patch) | |
tree | 1a448b2f0c53925370f7ec635e6e037c58143520 /net/http.lua | |
parent | 19910bcd283e98429564dfff75847b155e72ed86 (diff) | |
parent | d3d9a986ba588bba4f28b856f19f2a75209d3763 (diff) | |
download | prosody-e2d0d043df5adccb40575af6626535850d110cbb.tar.gz prosody-e2d0d043df5adccb40575af6626535850d110cbb.zip |
Second merge from waqas
Diffstat (limited to 'net/http.lua')
-rw-r--r-- | net/http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua index e8a981b8..a661bb52 100644 --- a/net/http.lua +++ b/net/http.lua @@ -13,7 +13,7 @@ local tonumber, tostring, pairs = tonumber, tostring, pairs; 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("%%%x", c:byte()); end)); end +local urlencode = function (s) return s and (s:gsub("%W", function (c) return string.format("%%%02x", c:byte()); end)); end module "http" |