[EMAIL PROTECTED] wrote: >r->bytes_sent needs to be just content data to be backwards >compatible. As for two fields to get the information, I am not sure why >we need two fields. >
We need two fields in order to compute r->bytes_sent in the first place. If we compute r->bytes_sent based on c->bytes_sent, it will include the length of the header. We'll have to keep track of the header length (in the HTTP filter) and subtract that in order to get the right value for r->bytes_sent. As a side-effect, anybody who needs the total # of bytes sent (including the header) will be able to add r->bytes_sent to the saved header length. Brian
