Fix issue with JSON headers sent to S3.