Bugfix: byte count for range requests (%b %B).

- Use header content length rather than response body_size.
- Add test.
Merge branch '0x4342-byte_count_fix'