net.http.parser: Abort if no status line is received.

remotes/origin/0.11
Kim Alvefur 13 years ago
parent 8e607ca796
commit a6731c13d1
  1. 1
      net/http/parser.lua

@ -77,6 +77,7 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb)
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)

Loading…
Cancel
Save