simple-authentication: style

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Šī revīzija ir iekļauta:
Jason A. Donenfeld 2014-01-23 00:58:07 +01:00
vecāks 44ccae4227
revīzija aa6d5b105d

Parādīt failu

@ -166,7 +166,7 @@ function url_encode(str)
return "" return ""
end end
str = string.gsub(str, "\n", "\r\n") 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, " ", "+") str = string.gsub(str, " ", "+")
return str return str
end end