[http]: Correctly handle partial chunk sizes; fixes #20583.