Explorar el Código

Add ContentLanguage Option

hangzws hace 7 años
padre
commit
13eff0458b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      oss/option.go

+ 5 - 0
oss/option.go

@@ -65,6 +65,11 @@ func ContentEncoding(value string) Option {
 	return setHeader(HTTPHeaderContentEncoding, value)
 }
 
+// ContentLanguage is an option to set Content-Language header
+func ContentLanguage(value string) Option {
+	return setHeader(HTTPHeaderContentLanguage, value)
+}
+
 // ContentMD5 is an option to set Content-MD5 header
 func ContentMD5(value string) Option {
 	return setHeader(HTTPHeaderContentMD5, value)