# HG changeset patch # User Kim Alvefur # Date 1577838177 -3600 # Node ID b7c5d7bae4ef09a64f8c568da2f8dce2def666cb # Parent 16099e8964d86f1bc6cfb30ff81344e0ed2869ac net.http.parser: Add TODO related to #726 diff -r 16099e8964d8 -r b7c5d7bae4ef net/http/parser.lua --- a/net/http/parser.lua Tue Dec 31 02:52:12 2019 +0100 +++ b/net/http/parser.lua Wed Jan 01 01:22:57 2020 +0100 @@ -93,6 +93,7 @@ chunked = have_body and headers["transfer-encoding"] == "chunked"; len = tonumber(headers["content-length"]); -- TODO check for invalid len if len and len > bodylimit then error = true; return error_cb("content-length-limit-exceeded"); end + -- TODO ask a callback whether to proceed in case of large requests or Expect: 100-continue if client then -- FIXME handle '100 Continue' response (by skipping it) if not have_body then len = 0; end