# HG changeset patch # User Waqas Hussain # Date 1292772433 -18000 # Node ID a34333fcae72b6679834d735b02b20fb2e05b052 # Parent 4447c651e6e6a137f4e52e6778f3e9934cfafb39 util.httpstream: A little cleanup of the HTTP path. diff -r 4447c651e6e6 -r a34333fcae72 util/httpstream.lua --- a/util/httpstream.lua Sun Dec 19 03:04:42 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