Skip to content

Commit 09f2aef

Browse files
authored
Fixup
1 parent 641b41a commit 09f2aef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/net/http/httptest/server.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,8 @@ func (s *Server) Certificate() *x509.Certificate {
297297
}
298298

299299
// Client returns an HTTP client configured for making requests to the server.
300-
// It is configured to trust the server's TLS test certificate and will
301-
// close its idle connections on [Server.Close].
302-
// It only redirects requests to the base URL (Server.URL) to the test server.
300+
// It is a standard http.Client that is configured to trust the server's TLS test certificate and will
301+
// close its idle connections on [Server.Close]. To hit the test server, use the base URL (Server.URL) in requests.
303302
func (s *Server) Client() *http.Client {
304303
return s.client
305304
}

0 commit comments

Comments
 (0)