Mercurial > prosody-hg
comparison plugins/mod_http_file_share.lua @ 11374:5b8aec0609f0
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 13 Feb 2021 14:06:46 +0100 |
| parents | 8cb2a64b15da |
| children | 6b687210975b |
comparison
equal
deleted
inserted
replaced
| 11373:ad3b5384fc03 | 11374:5b8aec0609f0 |
|---|---|
| 231 if not fh then | 231 if not fh then |
| 232 return err; | 232 return err; |
| 233 end | 233 end |
| 234 request.body_sink = fh; | 234 request.body_sink = fh; |
| 235 if request.body == false then | 235 if request.body == false then |
| 236 if request.headers.expect == "100-continue" then | |
| 237 request.conn:write("HTTP/1.1 100 Continue\r\n\r\n"); | |
| 238 end | |
| 236 return true; | 239 return true; |
| 237 end | 240 end |
| 238 end | 241 end |
| 239 | 242 |
| 240 if request.body then | 243 if request.body then |
