diff options
author | Kim Alvefur <zash@zash.se> | 2021-02-13 14:06:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-02-13 14:06:46 +0100 |
commit | 9501c7b976dc208d4ab6b9f92764aca9c46aa6a7 (patch) | |
tree | 7b3c18aba71fe388052c7fe3929256e242331077 /plugins | |
parent | f0ac9196099c7384f2cef16b0890f974ea30b641 (diff) | |
download | prosody-9501c7b976dc208d4ab6b9f92764aca9c46aa6a7.tar.gz prosody-9501c7b976dc208d4ab6b9f92764aca9c46aa6a7.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_file_share.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 01f204eb..2af4e0ca 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -233,6 +233,9 @@ function handle_upload(event, path) -- PUT /upload/:slot 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 |