Skip to content

Commit 170c808

Browse files
gowrisankar22stephanme
authored andcommitted
chore: remove remove-trailing-checksum-workaround-gdch
1 parent 352e340 commit 170c808

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

s3/config/config.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ func NewFromReader(reader io.Reader) (S3Cli, error) {
165165
c.configureAlicloud()
166166
case "google":
167167
c.configureGoogle()
168-
case "gdch":
169-
c.configureGDCH()
170168
default:
171169
c.configureDefault()
172170
}
@@ -220,12 +218,6 @@ func (c *S3Cli) configureGoogle() {
220218
c.RequestChecksumCalculationEnabled = false
221219
}
222220

223-
func (c *S3Cli) configureGDCH() {
224-
c.RequestChecksumCalculationEnabled = false
225-
c.ResponseChecksumCalculationEnabled = false
226-
c.UploaderRequestChecksumCalculationEnabled = false
227-
}
228-
229221
func (c *S3Cli) configureDefault() {
230222
// No specific configuration needed for default/unknown providers
231223
}

s3/config/endpoints.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var (
99
"aws": regexp.MustCompile(`(^$|s3[-.]?(.*)\.amazonaws\.com(\.cn)?$)`),
1010
"alicloud": regexp.MustCompile(`^oss-([a-z]+-[a-z]+(-[1-9])?)(-internal)?\.aliyuncs\.com$`),
1111
"google": regexp.MustCompile(`^storage\.googleapis\.com$`),
12-
"gdch": regexp.MustCompile(`objectstorage\..*`),
1312
}
1413
)
1514

0 commit comments

Comments
 (0)