Better logic for calculating HTTP body length