S3 remote state use application/json Content-Type.

The state is always JSON, in spite of the fact that this interface
presents it as an opaque byte array. It's more helpful to those interacting
with the state object outside of Terraform for it to have a more specific
content-type.
This commit is contained in:
Martin Atkins 2015-10-01 15:14:55 -07:00
parent 53f1edc28c
commit ccc8f0d0fb
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func (c *S3Client) Get() (*Payload, error) {
}
func (c *S3Client) Put(data []byte) error {
contentType := "application/octet-stream"
contentType := "application/json"
contentLength := int64(len(data))
i := &s3.PutObjectInput{