Return badarg if the content-length is not digits.