diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2023-10-26 13:53:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 13:53:40 +0200 |
commit | 36b10916a10248ec06abe5745e3a49007165a6b9 (patch) | |
tree | 3c46c8567d03452907e459bef6120686db73a60a | |
parent | e265aa096f9888f9bc996ed33ed2ca39a1dee7ef (diff) | |
parent | 2bfccf23d82efef4c9115a6e9860f278b43635fd (diff) |
Merge pull request #29106 from vespa-engine/bjormel/workaround-for-auth-issues-in-vespa-client
Always configure TLS
-rw-r--r-- | client/go/internal/vespa/target.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/go/internal/vespa/target.go b/client/go/internal/vespa/target.go index 5b29990fe4e..8c3f5c9b7c3 100644 --- a/client/go/internal/vespa/target.go +++ b/client/go/internal/vespa/target.go @@ -109,9 +109,7 @@ type LogOptions struct { // Do sends request to this service. Authentication of the request happens automatically. func (s *Service) Do(request *http.Request, timeout time.Duration) (*http.Response, error) { - s.once.Do(func() { - util.ConfigureTLS(s.httpClient, s.TLSOptions.KeyPair, s.TLSOptions.CACertificate, s.TLSOptions.TrustAll) - }) + util.ConfigureTLS(s.httpClient, s.TLSOptions.KeyPair, s.TLSOptions.CACertificate, s.TLSOptions.TrustAll) if s.auth != nil { if err := s.auth.Authenticate(request); err != nil { return nil, fmt.Errorf("%w: %s", errAuth, err) |