simple-authentication: style

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
这个提交包含在:
Jason A. Donenfeld 2014-01-23 00:58:07 +01:00
父节点 44ccae4227
当前提交 aa6d5b105d

查看文件

@ -166,7 +166,7 @@ function url_encode(str)
return ""
end
str = string.gsub(str, "\n", "\r\n")
str = string.gsub(str, "([^%w ])", function (c) return string.format("%%%02X", string.byte(c)) end)
str = string.gsub(str, "([^%w ])", function(c) return string.format("%%%02X", string.byte(c)) end)
str = string.gsub(str, " ", "+")
return str
end