]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net/http: Set TLSClientConfig.ServerName on every HTTP request.
authorDave Borowitz <dborowitz@google.com>
Fri, 21 Sep 2012 19:54:43 +0000 (05:54 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 21 Sep 2012 19:54:43 +0000 (05:54 +1000)
commit2d514df3b380d10cd53deac02fd67a599c37e652
treea3044726f429f33f2ad5ca84168c1c5e4fe90c3e
parent3b332b704bd09cc06f60a34a64c4c5d297aca935
[release-branch.go1] net/http: Set TLSClientConfig.ServerName on every HTTP request.

««« backport 8d39afcd18b1
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