Skip to content

Commit c800763

Browse files
authored
Merge pull request #296 from tencentyun/feature_jojoliang_6aaae605
Feature jojoliang 6aaae605
2 parents 1fb5906 + cc64785 commit c800763

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

auth.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import (
2222
)
2323

2424
const (
25-
sha1SignAlgorithm = "sha1"
26-
privateHeaderPrefix = "x-cos-"
27-
defaultAuthExpire = time.Hour
25+
sha1SignAlgorithm = "sha1"
26+
privateHeaderPrefix = "x-cos-"
27+
privateCIHeaderPrefix = "x-ci-"
28+
defaultAuthExpire = time.Hour
2829
)
2930

3031
var (
@@ -322,6 +323,9 @@ func isSignHeader(key string) bool {
322323
return true
323324
}
324325
}
326+
if strings.HasPrefix(key, privateCIHeaderPrefix) {
327+
return true
328+
}
325329
return strings.HasPrefix(key, privateHeaderPrefix)
326330
}
327331

0 commit comments

Comments
 (0)