net/http/parser.lua
changeset 10584 b7c5d7bae4ef
parent 10544 375d31225d53
child 11024 7076ed654ac9
--- 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