Changeset

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
parents 10579:16099e8964d8
children 10582:6d4562acef81
files net/http/parser.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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