mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
gcs: Storage class object header support - fixes #3043
This commit is contained in:
parent
cb16f42075
commit
6ab6c8eefa
@ -1091,6 +1091,8 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
||||
object.ContentLanguage = value
|
||||
case "content-type":
|
||||
object.ContentType = value
|
||||
case "x-goog-storage-class":
|
||||
object.StorageClass = value
|
||||
default:
|
||||
const googMetaPrefix = "x-goog-meta-"
|
||||
if strings.HasPrefix(lowerKey, googMetaPrefix) {
|
||||
|
@ -232,6 +232,7 @@ flag. Google Cloud Storage supports the headers as described in the
|
||||
- Content-Encoding
|
||||
- Content-Language
|
||||
- Content-Type
|
||||
- X-Goog-Storage-Class
|
||||
- X-Goog-Meta-
|
||||
|
||||
Eg `--header-upload "Content-Type text/potato"`
|
||||
|
Loading…
Reference in New Issue
Block a user