comparison src/http/v2/ngx_http_v2.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 ea1f29c2010c
children 208a4adb82ef
comparison
equal deleted inserted replaced
9253:a6649497a762 9254:cb1e214efe41
3805 stream = r->stream; 3805 stream = r->stream;
3806 rb = r->request_body; 3806 rb = r->request_body;
3807 3807
3808 if (stream->skip_data) { 3808 if (stream->skip_data) {
3809 r->request_body_no_buffering = 0; 3809 r->request_body_no_buffering = 0;
3810 r->connection->log->action = NULL;
3810 rb->post_handler(r); 3811 rb->post_handler(r);
3811 return NGX_OK; 3812 return NGX_OK;
3812 } 3813 }
3813 3814
3814 rb->rest = 1; 3815 rb->rest = 1;
4059 if (r->headers_in.chunked) { 4060 if (r->headers_in.chunked) {
4060 r->headers_in.content_length_n = rb->received; 4061 r->headers_in.content_length_n = rb->received;
4061 } 4062 }
4062 4063
4063 r->read_event_handler = ngx_http_block_reading; 4064 r->read_event_handler = ngx_http_block_reading;
4065 r->connection->log->action = NULL;
4064 rb->post_handler(r); 4066 rb->post_handler(r);
4065 4067
4066 return NGX_OK; 4068 return NGX_OK;
4067 } 4069 }
4068 4070