From 902f619a0657f3ea693f30b600c9ef29b45a09c7 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Wed, 8 Jun 2016 21:33:18 +0200 Subject: [PATCH] Fix call to minio.New() The last parameter changed semantics from `insecure` to `secure`. --- src/restic/backend/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/backend/s3/s3.go b/src/restic/backend/s3/s3.go index 484bfe733..a06d4a7f5 100644 --- a/src/restic/backend/s3/s3.go +++ b/src/restic/backend/s3/s3.go @@ -27,7 +27,7 @@ type s3 struct { func Open(cfg Config) (backend.Backend, error) { debug.Log("s3.Open", "open, config %#v", cfg) - client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, cfg.UseHTTP) + client, err := minio.New(cfg.Endpoint, cfg.KeyID, cfg.Secret, !cfg.UseHTTP) if err != nil { return nil, err }