aboutsummaryrefslogtreecommitdiffstats
path: root/util/httpstream.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-19 20:27:13 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-19 20:27:13 +0500
commit47c4c75803bb05dd19c1f593de2f707ab2c158c3 (patch)
tree29c1e47afa7d1c163091ee22603319a507905dc1 /util/httpstream.lua
parent000e09eb4f41d7917d85f40a3ea5dc51b0e05548 (diff)
downloadprosody-47c4c75803bb05dd19c1f593de2f707ab2c158c3.tar.gz
prosody-47c4c75803bb05dd19c1f593de2f707ab2c158c3.zip
util.httpstream: A little cleanup of the HTTP path.
Diffstat (limited to 'util/httpstream.lua')
-rw-r--r--util/httpstream.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/httpstream.lua b/util/httpstream.lua
index 4b5060a1..c9f2f691 100644
--- a/util/httpstream.lua
+++ b/util/httpstream.lua
@@ -46,7 +46,7 @@ local function parser(success_cb, parser_type, options_cb)
local status_line = readline();
local method, path, httpversion = status_line:match("^(%S+)%s+(%S+)%s+HTTP/(%S+)$");
if not method then coroutine.yield("invalid-status-line"); end
- -- TODO parse url
+ path = path:gsub("^//+", "/"); -- TODO parse url more
local headers = readheaders();
-- read body