Skip to content

Commit

Permalink
changing middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
gcase555 committed Jun 21, 2024
1 parent 6db683c commit 080287c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/scm/bitbucketcloud/bitbucket_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package bitbucketcloud

import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"net/http"
"net/url"
"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"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 080287c

Please sign in to comment.