fix s3 content length warnings