# HG changeset patch # User Waqas Hussain # Date 1360264720 -18000 # Node ID 8d525f58f916f112c0edaf1ff8008b4c76d1fa71 # Parent 518d864b2ab8e4e1cd53a491f7e611fb2f419582 net.http.parser: Fix traceback on invalid URL in status line. diff -r 518d864b2ab8 -r 8d525f58f916 net/http/parser.lua --- a/net/http/parser.lua Thu Jan 31 18:41:01 2013 +0100 +++ b/net/http/parser.lua Fri Feb 08 00:18:40 2013 +0500 @@ -99,6 +99,7 @@ parsed_url = { path = _path, query = _query }; else parsed_url = url_parse(path); + if not parsed_url then error = true; return error_cb("invalid-url"); end end path = preprocess_path(parsed_url.path); headers.host = parsed_url.host or headers.host;