소스 검색

Supress "Response has no supported checksum" warnings from S3 SDK

DarthSim 2 달 전
부모
커밋
238e5656fa
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      transport/s3/s3.go

+ 5 - 1
transport/s3/s3.go

@@ -73,7 +73,11 @@ func New() (http.RoundTripper, error) {
 		conf.Credentials = creds
 	}
 
-	clientOptions := []func(*s3.Options){}
+	clientOptions := []func(*s3.Options){
+		func(o *s3.Options) {
+			o.DisableLogOutputChecksumValidationSkipped = true
+		},
+	}
 
 	if len(config.S3Endpoint) != 0 {
 		endpoint := config.S3Endpoint