The only way to set the content-type header on a write is with the globa...

...l setting AWS_HEADERS. When writing to a file the content-type should be guessed from the file name instead.