]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] fix accounting for response bytes
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Mar 2007 15:28:03 +0000 (16:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Mar 2007 15:28:03 +0000 (16:28 +0100)
A remaining reference to rep->h was replaced.

src/proto_http.c

index 651ceb683afec7d97c88c24010ad7f7c48d3a0f5..ea9ebc851341d1eb737fd76ec9f3f194e7a80586 100644 (file)
@@ -2740,7 +2740,7 @@ int process_srv(struct session *t)
                   bytes from the server, then this is the right moment. */
                if (t->fe->to_log && !(t->logs.logwait & LW_BYTES)) {
                        t->logs.t_close = t->logs.t_data; /* to get a valid end date */
-                       t->logs.bytes_in = rep->h - rep->data;
+                       t->logs.bytes_in = txn->rsp.eoh;
                        sess_log(t);
                }