]> Cypherpunks repositories - gostls13.git/commit
net/http: Set TLSClientConfig.ServerName on every HTTP request.
authorDave Borowitz <dborowitz@google.com>
Wed, 22 Aug 2012 16:15:41 +0000 (09:15 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2012 16:15:41 +0000 (09:15 -0700)
commit2eb6a16e16411a394527447b4f6ec0ba838b18e8
treece4bc16ca92c733576f9c84270e88a52d73138ab
parentc27a7dbf78e976a4655478711da03537a38a206d
net/http: Set TLSClientConfig.ServerName on every HTTP request.

This makes SNI "just work" for callers using the standard http.Client.

Since we now have a test that depends on the httptest.Server cert, change
the cert to be a CA (keeping all other fields the same).

R=bradfitz
CC=agl, dsymonds, gobot, golang-dev
https://golang.org/cl/6448154
src/pkg/net/http/client_test.go
src/pkg/net/http/httptest/server.go
src/pkg/net/http/transport.go