Skip to content

Commit

Permalink
Fix call to minio.New()
Browse files Browse the repository at this point in the history
The last parameter changed semantics from `insecure` to `secure`.
  • Loading branch information
fd0 committed Jun 8, 2016
1 parent d66a98c commit 902f619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restic/backend/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 902f619

Please sign in to comment.