]> Cypherpunks repositories - gostls13.git/commit
net/http: configure http2 transport only once
authorIngo Oeser <nightlyone@googlemail.com>
Tue, 11 Sep 2018 23:16:29 +0000 (01:16 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Sep 2018 14:39:02 +0000 (14:39 +0000)
commit1058aecf611fc85365f87733f8588ef1cd31c8cd
treeaab7779f60e984508d7ceaa5af69b060166cd4c7
parent4a0dad211c2158e8763c6fd230fbdc1c7d566cb9
net/http: configure http2 transport only once

it looks like we should abort trying to configure the http2 transport
again, once it has been configured already.

Otherwise there will be no effect of these checks and changes, as they
will be overridden later again and the disable logic below will have no
effect, too.

So it really looks like we just forgot a return statement here.

Change-Id: Ic99b3bbc662a4e1e1bdbde77681bd1ae597255ad
Reviewed-on: https://go-review.googlesource.com/134795
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/transport.go