Skip to content

Commit

Permalink
upload接口透传参数到complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoliang committed Jul 2, 2024
1 parent 520c06f commit 9906bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cos.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

const (
// Version current go sdk version
Version = "0.7.52"
Version = "0.7.53"
UserAgent = "cos-go-sdk-v5/" + Version
contentTypeXML = "application/xml"
defaultServiceBaseURL = "http://service.cos.myqcloud.com"
Expand Down
2 changes: 1 addition & 1 deletion helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func isDeliverHeader(key string) bool {
return true
}
}
return strings.HasPrefix(key, privateHeaderPrefix)
return strings.HasPrefix(key, privateHeaderPrefix) || strings.HasPrefix(key, "x-")
}

func deliverInitOptions(opt *InitiateMultipartUploadOptions) (*http.Header, error) {
Expand Down

0 comments on commit 9906bd9

Please sign in to comment.