Fix the incorrect length read as a request body.