Skip to content

Commit

Permalink
request_rec: Single bit for body_indeterminate (while it's not in 2.4…
Browse files Browse the repository at this point in the history
….x yet).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910573 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ylavic committed Jun 23, 2023
1 parent 27555e1 commit df5a262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/httpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -1144,19 +1144,20 @@ 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
* newer HTTP versions can transfer such bodies by other means. The
* 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;
};

/**
Expand Down

0 comments on commit df5a262

Please sign in to comment.