diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:34:08 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:59:03 +0100 |
| commit | a30ef6b27e578a4cf0a674b24f5b52b4c1516c63 (patch) | |
| tree | 27c7321cbceac2a487c1ba17151711de3d438a53 /internal/test/server.go | |
| parent | b00ce8214479c50e137db73c77b0cc1393c5e7d4 (diff) | |
All: Rename packages that sound useless or clash with std
Diffstat (limited to 'internal/test/server.go')
| -rw-r--r-- | internal/test/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/test/server.go b/internal/test/server.go index 2596f29..82dd2f7 100644 --- a/internal/test/server.go +++ b/internal/test/server.go @@ -8,7 +8,7 @@ import ( "net/http" "net/http/httptest" - httpw "codeberg.org/eduVPN/eduvpn-common/internal/http" + "codeberg.org/eduVPN/eduvpn-common/internal/httpwrap" ) // Server wraps a HTTP test server @@ -71,7 +71,7 @@ func NewServerWithHandles(hps []HandlerPath, listener net.Listener) *Server { } // Client returns a test client that trusts the HTTPS certificates -func (srv *Server) Client() (*httpw.Client, error) { +func (srv *Server) Client() (*httpwrap.Client, error) { // Get the certs from the test server certs := x509.NewCertPool() for _, c := range srv.TLS.Certificates { @@ -91,6 +91,6 @@ func (srv *Server) Client() (*httpw.Client, error) { }, } // Override the client such that it only trusts the test server cert - httpC := httpw.NewClient(client) + httpC := httpwrap.NewClient(client) return httpC, nil } |
