Lines 438-443
static int spool_reqbody_cl(proxy_http_req_t *req,
Link Here
|
438 |
apr_file_t *tmpfile = NULL; |
438 |
apr_file_t *tmpfile = NULL; |
439 |
apr_off_t limit; |
439 |
apr_off_t limit; |
440 |
|
440 |
|
|
|
441 |
/* |
442 |
* Tell the HTTP_IN filter that it should send a "100 continue" if the |
443 |
* client expects one, before blocking on the body, otherwise we'd wait |
444 |
* for each other. |
445 |
*/ |
446 |
if (req->expecting_100) { |
447 |
/* From https://tools.ietf.org/html/rfc7231#section-5.1.1 |
448 |
* A server MAY omit sending a 100 (Continue) response if it has |
449 |
* already received some or all of the message body for the |
450 |
* corresponding request, or if [snip]. |
451 |
*/ |
452 |
r->expecting_100 = APR_BRIGADE_EMPTY(input_brigade); |
453 |
req->expecting_100 = 0; |
454 |
} |
455 |
|
441 |
body_brigade = apr_brigade_create(p, bucket_alloc); |
456 |
body_brigade = apr_brigade_create(p, bucket_alloc); |
442 |
*bytes_spooled = 0; |
457 |
*bytes_spooled = 0; |
443 |
|
458 |
|