Skip to content

Commit

Permalink
feature(main): fix labring/endpoints-operator#143
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Apr 15, 2024
1 parent 3fbe7d3 commit 57a8f71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions probe/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import (
"github.com/labring/operator-sdk/io"
"github.com/labring/operator-sdk/probe"
"github.com/labring/operator-sdk/version"
"k8s.io/klog/v2"

utilnet "k8s.io/apimachinery/pkg/util/net"
)

Expand Down Expand Up @@ -78,6 +76,7 @@ func (pr httpProber) Probe(url *url.URL, headers http.Header, timeout time.Durat
Transport: pr.transport,
CheckRedirect: redirectChecker(pr.followNonLocalRedirects),
}
defer client.CloseIdleConnections()
return DoHTTPProbe(url, headers, client)
}

Expand Down

0 comments on commit 57a8f71

Please sign in to comment.