# HG changeset patch # User Waqas Hussain # Date 1292772433 -18000 # Node ID 215c0ec638160bb5ea95547480789cf8812b7086 # Parent e1f19f437ddd919cbf9bb56a982c304d8f2ccad0 util.httpstream: A little cleanup of the HTTP path. diff -r e1f19f437ddd -r 215c0ec63816 util/httpstream.lua --- a/util/httpstream.lua Sun Dec 19 02:57:58 2010 +0000 +++ b/util/httpstream.lua Sun Dec 19 20:27:13 2010 +0500 @@ -46,7 +46,7 @@ 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