We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53c2f7e + d97656d commit cc64785Copy full SHA for cc64785
auth.go
@@ -22,9 +22,10 @@ import (
22
)
23
24
const (
25
- sha1SignAlgorithm = "sha1"
26
- privateHeaderPrefix = "x-cos-"
27
- defaultAuthExpire = time.Hour
+ sha1SignAlgorithm = "sha1"
+ privateHeaderPrefix = "x-cos-"
+ privateCIHeaderPrefix = "x-ci-"
28
+ defaultAuthExpire = time.Hour
29
30
31
var (
@@ -322,6 +323,9 @@ func isSignHeader(key string) bool {
322
323
return true
324
}
325
326
+ if strings.HasPrefix(key, privateCIHeaderPrefix) {
327
+ return true
328
+ }
329
return strings.HasPrefix(key, privateHeaderPrefix)
330
331
0 commit comments