Skip to content

Commit

Permalink
Merge pull request #95 from volcengine/feat/tos
Browse files Browse the repository at this point in the history
Feat/tos
  • Loading branch information
zpp12354321 authored Jun 13, 2023
2 parents 064416f + 8792227 commit 126e635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/common_volcengine_tos_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func hashedCanonicalRequestV4(request *http.Request, meta *tosMetadata) string {
var sortedHeaderKeys []string
for key := range request.Header {
switch key {
case "Content-Type", "Content-Md5", "Host", "X-BypassSvc-Security-Token":
case "Content-Type", "Content-Md5", "Host", "X-Tos-Security-Token":
default:
if !strings.HasPrefix(key, "X-") {
continue
Expand Down Expand Up @@ -211,7 +211,7 @@ func signatureV4(signingKey []byte, stringToSign string) string {

func prepareRequestV4(request *http.Request) *http.Request {
necessaryDefaults := map[string]string{
"X-BypassSvc-Date": timestampV4(),
"X-Tos-Date": timestampV4(),
}

for header, value := range necessaryDefaults {
Expand Down
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.78"
TerraformProviderVersion = "0.0.79"
)

0 comments on commit 126e635

Please sign in to comment.