From df5a2628ccac94bb5af5c257c3765d848e270e80 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 23 Jun 2023 14:10:07 +0000 Subject: [PATCH] request_rec: Single bit for body_indeterminate (while it's not in 2.4.x yet). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910573 13f79535-47bb-0310-9956-ffa450edef68 --- include/httpd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/httpd.h b/include/httpd.h index 0affc58edb2..ccbe417328a 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1144,6 +1144,7 @@ struct request_rec { * the elements of this field. */ ap_request_bnotes_t bnotes; + /** Indicates that the request has a body of unknown length and * protocol handlers need to read it, even if only to discard the * data. In HTTP/1.1 this is set on chunked transfer encodings, but @@ -1151,12 +1152,12 @@ struct request_rec { * absence of a "Transfer-Encoding" header is no longer sufficient * to conclude that no body is there. */ - int body_indeterminate; + unsigned int body_indeterminate :1; /** Whether a final (status >= 200) RESPONSE BUCKET has been passed down * the output filters already. Relevant for ap_die(). * TODO: compact elsewhere */ - unsigned int final_resp_passed:1; + unsigned int final_resp_passed :1; }; /** -- 2.47.2