@@ -711,7 +711,12 @@ func openDataSource(url string, urlPosition int) (io.ReadSeeker, string, bool) {
711711 file , inCache := getItemFromCache (cacheFileName , "miniocache/" )
712712 if ! inCache {
713713 log .Println ("Minio File not in local file Cache, Need to fetch" )
714- minioClient , err := minio .New (currentLocation .Location , currentLocation .MinioAccessKey , currentLocation .MinioSecretKey , false )
714+ minioClient , err := minio .New (
715+ currentLocation .Location ,
716+ currentLocation .MinioAccessKey ,
717+ currentLocation .MinioSecretKey ,
718+ currentLocation .MinioUseSSL ,
719+ )
715720 elapsed := time .Since (start )
716721 log .Println (" Time to Make connection " , elapsed )
717722 if err != nil {
@@ -1984,7 +1989,7 @@ func (s *fileSystemServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
19841989 currentLocation .Location ,
19851990 currentLocation .MinioAccessKey ,
19861991 currentLocation .MinioSecretKey ,
1987- false ,
1992+ currentLocation . MinioUseSSL ,
19881993 )
19891994 if err != nil {
19901995 log .Println ("Error Establishing Connection to Minio" , err )
0 commit comments