diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-19 20:27:13 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-19 20:27:13 +0500 |
commit | 242b8f9475a60bf1f9bb574d26269d2d6a10287f (patch) | |
tree | f1222c2bd3ba2e70746619957e23a866cec3e19f | |
parent | a41d900875ad6df24c037b638adedaf0ae987543 (diff) | |
download | prosody-242b8f9475a60bf1f9bb574d26269d2d6a10287f.tar.gz prosody-242b8f9475a60bf1f9bb574d26269d2d6a10287f.zip |
util.httpstream: A little cleanup of the HTTP path.
-rw-r--r-- | util/httpstream.lua | 2 |
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 |