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:
parent
53f1edc28c
commit
ccc8f0d0fb
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue