Diff

net/http/parser.lua @ 10580:b7c5d7bae4ef

net.http.parser: Add TODO related to #726
author Kim Alvefur <zash@zash.se>
date Wed, 01 Jan 2020 01:22:57 +0100
parent 10540:375d31225d53
child 11020:7076ed654ac9
line wrap: on
line diff
--- 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