From 080287c4545ab2aebba994df0fac52fa5a09d62c Mon Sep 17 00:00:00 2001 From: gcase555 Date: Fri, 21 Jun 2024 09:41:04 -0500 Subject: [PATCH] changing middleware --- internal/scm/bitbucketcloud/bitbucket_cloud.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/scm/bitbucketcloud/bitbucket_cloud.go b/internal/scm/bitbucketcloud/bitbucket_cloud.go index c4103043..39c8e758 100644 --- a/internal/scm/bitbucketcloud/bitbucket_cloud.go +++ b/internal/scm/bitbucketcloud/bitbucket_cloud.go @@ -2,7 +2,6 @@ package bitbucketcloud import ( "context" - "crypto/tls" "encoding/json" "fmt" "net/http" @@ -10,6 +9,8 @@ import ( "slices" "strings" + internalHTTP "github.com/lindell/multi-gitter/internal/http" + "github.com/ktrysmt/go-bitbucket" "github.com/lindell/multi-gitter/internal/scm" "github.com/pkg/errors" @@ -43,9 +44,7 @@ func New(username string, token string, repositories []string, workspaces []stri bitbucketCloud.sshAuth = sshAuth bitbucketCloud.newOwner = newOwner bitbucketCloud.httpClient = &http.Client{ - Transport: transportMiddleware(&http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: false}, // nolint: gosec - }), + Transport: internalHTTP.LoggingRoundTripper{}, } bitbucketCloud.bbClient = bitbucket.NewBasicAuth(username, token)