Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(669)

Issue 11691043: code review 11691043: net/http: respect tls.Config.ServerName in Transport (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by bradfitz
Modified:
11 years, 8 months ago
Reviewers:
agl1, adg
CC:
golang-dev, agl1, adg
Visibility:
Public.

Description

net/http: respect tls.Config.ServerName in Transport When making an HTTPS client request, respect the ServerName field in the tls.Config. Fixes issue 5829

Patch Set 1 #

Patch Set 2 : diff -r d4e547c7e3a4 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r d4e547c7e3a4 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r e560004b817d https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r a86c5dc7e7e9 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M src/pkg/net/http/client_test.go View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 8 months ago (2013-07-22 20:59:15 UTC) #1
bradfitz
R=agl If this is correct, I can think about how/whether this is easily testable. On ...
11 years, 8 months ago (2013-07-22 21:01:09 UTC) #2
agl1
LGTM
11 years, 8 months ago (2013-07-22 22:16:17 UTC) #3
bradfitz
Thanks. PTAL (anybody) .. now with a test. On Mon, Jul 22, 2013 at 3:16 ...
11 years, 8 months ago (2013-07-22 23:41:44 UTC) #4
adg
Huh? Shouldn't this test fail? I'm confused.
11 years, 8 months ago (2013-07-23 04:19:41 UTC) #5
bradfitz
The comment on line 679 says why it should pass. It used to fail, but ...
11 years, 8 months ago (2013-07-23 04:26:36 UTC) #6
adg
What's the purpose of Get("https://some-other-host.tld/") ? What about a test the other way? Where the ...
11 years, 8 months ago (2013-07-23 04:30:03 UTC) #7
bradfitz
hostname(that) != "127.0.0.1" && hostname(that) != "example.com" ... both of which would've passed. Hence the ...
11 years, 8 months ago (2013-07-23 04:37:41 UTC) #8
adg
LGTM A comment to that effect would be nice. :-) On 23 July 2013 14:37, ...
11 years, 8 months ago (2013-07-23 04:39:18 UTC) #9
bradfitz
Done. On Mon, Jul 22, 2013 at 9:38 PM, Andrew Gerrand <adg@golang.org> wrote: > LGTM ...
11 years, 8 months ago (2013-07-23 05:39:07 UTC) #10
bradfitz
11 years, 8 months ago (2013-07-23 05:39:18 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=4bfbd12d6f4f ***

net/http: respect tls.Config.ServerName in Transport

When making an HTTPS client request, respect the
ServerName field in the tls.Config.

Fixes issue 5829

R=golang-dev, agl, adg
CC=golang-dev
https://codereview.appspot.com/11691043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b