From cd8f3109a1804c6e17b0763633813e406ab02fd3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 19 Dec 2010 20:27:13 +0500 Subject: [PATCH] util.httpstream: A little cleanup of the HTTP path. --- util/httpstream.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2