From ccc8f0d0fbe7a5441f1539275de542823dd71a22 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 1 Oct 2015 15:14:55 -0700 Subject: [PATCH] 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. --- state/remote/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/remote/s3.go b/state/remote/s3.go index 26330d112..bdc6a63cf 100644 --- a/state/remote/s3.go +++ b/state/remote/s3.go @@ -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{