• Adam Langley's avatar
    crypto/tls: don't send NPN extension if NextProtos is not set. · 8590e1bd
    Adam Langley authored
    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
    8590e1bd
handshake_server.go 15.7 KB