Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_request.c @ 9254:cb1e214efe41
Request body: provided log action for reading request body.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 27 Apr 2024 18:19:07 +0300 |
parents | 3728a0ed243a |
children | 208a4adb82ef |
comparison
equal
deleted
inserted
replaced
9253:a6649497a762 | 9254:cb1e214efe41 |
---|---|
1248 } | 1248 } |
1249 | 1249 |
1250 if (rb->rest == 0 && rb->last_saved) { | 1250 if (rb->rest == 0 && rb->last_saved) { |
1251 /* the whole request body was pre-read */ | 1251 /* the whole request body was pre-read */ |
1252 r->request_body_no_buffering = 0; | 1252 r->request_body_no_buffering = 0; |
1253 r->connection->log->action = NULL; | |
1253 rb->post_handler(r); | 1254 rb->post_handler(r); |
1254 return NGX_OK; | 1255 return NGX_OK; |
1255 } | 1256 } |
1256 | 1257 |
1257 if (rb->rest < 0) { | 1258 if (rb->rest < 0) { |
1470 ngx_del_timer(c->read); | 1471 ngx_del_timer(c->read); |
1471 } | 1472 } |
1472 | 1473 |
1473 if (!r->request_body_no_buffering) { | 1474 if (!r->request_body_no_buffering) { |
1474 r->read_event_handler = ngx_http_block_reading; | 1475 r->read_event_handler = ngx_http_block_reading; |
1476 r->connection->log->action = NULL; | |
1475 rb->post_handler(r); | 1477 rb->post_handler(r); |
1476 } | 1478 } |
1477 | 1479 |
1478 return NGX_OK; | 1480 return NGX_OK; |
1479 } | 1481 } |