Skip to content

Commit 641b41a

Browse files
authored
net/http/httptest: add comment to Server.Client() about Server.URL
Related to #30774.
1 parent 8c0da42 commit 641b41a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/net/http/httptest/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ func (s *Server) Certificate() *x509.Certificate {
299299
// Client returns an HTTP client configured for making requests to the server.
300300
// It is configured to trust the server's TLS test certificate and will
301301
// close its idle connections on [Server.Close].
302+
// It only redirects requests to the base URL (Server.URL) to the test server.
302303
func (s *Server) Client() *http.Client {
303304
return s.client
304305
}

0 commit comments

Comments
 (0)