You probably shouldn't use body_length but replicate what it's doing instead. body_length doesn't modify the Req so there's no issue.