# HG changeset patch # User Kim Alvefur # Date 1357648381 -3600 # Node ID 01f7522049fbeef224108754728af786cbc68703 # Parent befb1923527d479f50e9d41ec13d1991cb0a2d9f net.http.parser: Abort if no status line is received. diff -r befb1923527d -r 01f7522049fb net/http/parser.lua --- a/net/http/parser.lua Mon Jan 07 04:07:25 2013 +0100 +++ b/net/http/parser.lua Tue Jan 08 13:33:01 2013 +0100 @@ -77,6 +77,7 @@ end end end + if not first_line then error = true; return error_cb("invalid-status-line"); end len = tonumber(headers["content-length"]); -- TODO check for invalid len if client then -- FIXME handle '100 Continue' response (by skipping it)