From 2843dc1f44b7d4bb08ee39ba54f0eb9a22126842 Mon Sep 17 00:00:00 2001 From: jojoliang Date: Wed, 18 Dec 2019 14:44:56 +0800 Subject: [PATCH] add content-language --- object.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/object.go b/object.go index 0a25805..fd8285b 100644 --- a/object.go +++ b/object.go @@ -129,6 +129,7 @@ type ObjectPutHeaderOptions struct { ContentType string `header:"Content-Type,omitempty" url:"-"` ContentMD5 string `header:"Content-MD5,omitempty" url:"-"` ContentLength int `header:"Content-Length,omitempty" url:"-"` + ContentLanguage string `header:"Content-Language,omitempty" url:"-"` Expect string `header:"Expect,omitempty" url:"-"` Expires string `header:"Expires,omitempty" url:"-"` XCosContentSHA1 string `header:"x-cos-content-sha1,omitempty" url:"-"` @@ -188,6 +189,7 @@ type ObjectCopyHeaderOptions struct { CacheControl string `header:"Cache-Control,omitempty" url:"-"` ContentDisposition string `header:"Content-Disposition,omitempty" url:"-"` ContentEncoding string `header:"Content-Encoding,omitempty" url:"-"` + ContentLanguage string `header:"Content-Language,omitempty" url:"-"` ContentType string `header:"Content-Type,omitempty" url:"-"` Expires string `header:"Expires,omitempty" url:"-"` Expect string `header:"Expect,omitempty" url:"-"` @@ -208,6 +210,8 @@ type ObjectCopyHeaderOptions struct { XCosCopySourceSSECustomerAglo string `header:"x-cos-copy-source-server-side-encryption-customer-algorithm,omitempty" url:"-" xml:"-"` XCosCopySourceSSECustomerKey string `header:"x-cos-copy-source-server-side-encryption-customer-key,omitempty" url:"-" xml:"-"` XCosCopySourceSSECustomerKeyMD5 string `header:"x-cos-copy-source-server-side-encryption-customer-key-MD5,omitempty" url:"-" xml:"-"` + //兼容其他自定义头部 + XOptionHeader *http.Header `header:"-,omitempty" url:"-" xml:"-"` } // ObjectCopyOptions is the option of Copy, choose header or body