Fixed content_length bug for redirect downloads