]> Cypherpunks repositories - gostls13.git/commit
net/http: don't always require certFile, keyFile in Server.ListenAndServerTLS
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 Jun 2015 11:57:33 +0000 (13:57 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 25 Jun 2015 01:44:47 +0000 (01:44 +0000)
commitf81f6d6ee8a7f578ab19ccb8b7dbc3b6fff81aa0
tree79ee72c20193343ccb08c5164e3d5a07d1b1a989
parent2917ab204933d345c3fd5ed7ce5a1c4fb46ce043
net/http: don't always require certFile, keyFile in Server.ListenAndServerTLS

The ListenAndServerTLS function still requires the certFile and
keyFile, but the Server.ListenAndServerTLS method doesn't need to
require the certFile and keyFile if the Server.TLSConfig.Certificates
are already populated.

Fixes #8599

Change-Id: Id2e3433732f93e2619bfd78891f775d89f1d651e
Reviewed-on: https://go-review.googlesource.com/11413
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/net/http/server.go