mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-13 09:11:06 +00:00
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".
This commit is contained in:
parent
2fb1d4caaa
commit
cf42d5afa0
@ -1103,8 +1103,8 @@ static size_t h1_process_data(struct h1s *h1s, struct h1m *h1m, struct htx *htx,
|
||||
if (!htx_add_data(htx, ist2(b_peek(buf, *ofs), ret)))
|
||||
goto end;
|
||||
|
||||
*ofs += max;
|
||||
total = max;
|
||||
*ofs += ret;
|
||||
total = ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user