From 69c74c9ea932f284364b0cac72a454a4e56d4ab2 Mon Sep 17 00:00:00 2001 From: Alireza Ghasemi Date: Thu, 9 May 2024 06:07:55 +0000 Subject: [PATCH] net/http/httptest: add comment to Server.Client() about Server.URL Updates #30774. Change-Id: I9564f955b15c701bee27aa9fbf3972de8fdb55e4 GitHub-Last-Rev: 50bd6bd54ec4195ed9e09a4a2d69e386bf55b21f GitHub-Pull-Request: golang/go#67037 Reviewed-on: https://go-review.googlesource.com/c/go/+/581777 Reviewed-by: Damien Neil Auto-Submit: Damien Neil Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- src/net/http/httptest/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/http/httptest/server.go b/src/net/http/httptest/server.go index 5095b438ec..fa54923179 100644 --- a/src/net/http/httptest/server.go +++ b/src/net/http/httptest/server.go @@ -299,6 +299,7 @@ func (s *Server) Certificate() *x509.Certificate { // Client returns an HTTP client configured for making requests to the server. // It is configured to trust the server's TLS test certificate and will // close its idle connections on [Server.Close]. +// Use Server.URL as the base URL to send requests to the server. func (s *Server) Client() *http.Client { return s.client } -- 2.48.1