# HG changeset patch # User Kim Alvefur # Date 1613221606 -3600 # Node ID 5b8aec0609f004ba66fd20f6cdfd8f1b9692ffc5 # Parent ad3b5384fc03fe5ef137f53a19033203ac735aef mod_http_file_share: Support sending 100 Continue E.g. curl will ask for this when sending large uploads. Removes a delay while it waits for an error or go-agead. diff -r ad3b5384fc03 -r 5b8aec0609f0 plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Sat Feb 13 13:38:56 2021 +0100 +++ b/plugins/mod_http_file_share.lua Sat Feb 13 14:06:46 2021 +0100 @@ -233,6 +233,9 @@ end request.body_sink = fh; if request.body == false then + if request.headers.expect == "100-continue" then + request.conn:write("HTTP/1.1 100 Continue\r\n\r\n"); + end return true; end end