Klaus Demo nginx / 61feb90
Request body: fixed discard of chunked request body. Even if there is no preread data, make sure to always call ngx_http_discard_request_body_filter() in case of chunked request body to initialize r->headers_in.content_length_n for later use. Maxim Dounin 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
458458
459459 size = r->header_in->last - r->header_in->pos;
460460
461 if (size) {
461 if (size || r->headers_in.chunked) {
462462 rc = ngx_http_discard_request_body_filter(r, r->header_in);
463463
464464 if (rc != NGX_OK) {