aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-01-01 01:22:57 +0100
committerKim Alvefur <zash@zash.se>2020-01-01 01:22:57 +0100
commit48bb417812710633ce1340e1f0f91366905b2a4f (patch)
tree9ea5dc0dddbdf7fb7645a81a66289cd2f7dac439 /net
parent0f26f2d5c92e5fa7102ada3831987821dcf3a6c0 (diff)
downloadprosody-48bb417812710633ce1340e1f0f91366905b2a4f.tar.gz
prosody-48bb417812710633ce1340e1f0f91366905b2a4f.zip
net.http.parser: Add TODO related to #726
Diffstat (limited to 'net')
-rw-r--r--net/http/parser.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/parser.lua b/net/http/parser.lua
index 62c09aef..b328bdfe 100644
--- a/net/http/parser.lua
+++ b/net/http/parser.lua
@@ -93,6 +93,7 @@ function httpstream.new(success_cb, error_cb, parser_type, options_cb)
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