v0.43.1
This commit is contained in:
1 parent
5b6d4a7903
commit
4d1087e357
160 files changed
+2407
-1933
No files matched your search
@@ -226,7 +226,7 @@ func TestTLSInventoryReportsServingCertificateFingerprint(t *testing.T) {
|
||||
go func() { _ = server.ServeTLS(listener, certFile, keyFile) }()
|
||||
t.Cleanup(func() { _ = server.Close() })
|
||||
|
||||
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}} // test-only: verify the endpoint is actually TLS; RustProxy pins it in production.
|
||||
transport := &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}
|
||||
client := &http.Client{Transport: transport, Timeout: time.Second}
|
||||
req, _ := http.NewRequest(http.MethodGet, "https://"+listener.Addr().String()+"/v1/inventory", nil)
|
||||
req.Header.Set("Authorization", "Bearer "+cfg.Token)
|
||||
|
||||
Reference in new issue
Block a user