]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: don't send NPN extension if NextProtos is not set.
authorAdam Langley <agl@golang.org>
Tue, 21 May 2013 14:47:31 +0000 (10:47 -0400)
committerAdam Langley <agl@golang.org>
Tue, 21 May 2013 14:47:31 +0000 (10:47 -0400)
commit8590e1bd3c0d6250b6f6c2d58022f32a40354c6b
tree3efd24da8e9fe2b0fdf98cd8c5ffa4e698a6266c
parentf5d06da07229ace92d34585ff56f89b11fc95f70
crypto/tls: don't send NPN extension if NextProtos is not set.

This isn't clearly a bug on Go's part, but it triggers a bug in Firefox
which means that crypto/tls and net/http cannot be wired up together
unless NextProtos includes "http/1.1". When net/http sets up the
tls.Config, it does this and so works fine. But anyone setting up the
tls.Config themselves will hit the Firefox bug.

Fixes #5445.

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/9539045
src/pkg/crypto/tls/handshake_server.go