commit | cf42d5afa0a3d60809d9c0a61158c980b7884caf | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Tue Dec 04 17:41:58 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 04 18:32:39 2018 +0100 |
tree | e332a4b1e9ee57c8cec050f275eb0762205d20ec | |
parent | 2fb1d4caaae583d68aed5e605eb3a0c07d87a714 [diff] |
BUG/MEDIUM: h1: Correctly report used data with no len. When we have no content-length, and not in chunk mode, correctly report the used data. We really used "ret", and not "max".
diff --git a/src/mux_h1.c b/src/mux_h1.c index cb4341f..b0d5567 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c
@@ -1103,8 +1103,8 @@ if (!htx_add_data(htx, ist2(b_peek(buf, *ofs), ret))) goto end; - *ofs += max; - total = max; + *ofs += ret; + total = ret; } }