author | Matthew Wild <mwild1@gmail.com> |
Thu, 29 Nov 2012 07:38:24 +0500 | |
changeset 5208 | afa9b7e18e43 |
parent 5206 | b4de85209ccf (current diff) |
parent 5207 | c5edb08fc7cb (diff) |
child 5212 | c2b431042a54 |
--- a/net/http/parser.lua Thu Nov 29 07:17:31 2012 +0500 +++ b/net/http/parser.lua Thu Nov 29 07:38:24 2012 +0500 @@ -5,7 +5,7 @@ local urldecode = require "net.http".urldecode; local function preprocess_path(path) - path = urldecode(path); + path = urldecode((path:gsub("//+". "/"))); if path:sub(1,1) ~= "/" then path = "/"..path; end