godeps: update vmware/govmomi to v0.20.1

Includes fix for SAML token auth with vSphere and zones API

Issue #77360

See also: #75742
This commit is contained in:
Doug MacEachern
2019-05-20 16:11:53 -07:00
parent fe0d89fc57
commit f1f50a3fc4
6 changed files with 13 additions and 10 deletions

View File

@@ -265,8 +265,11 @@ func (s *Signer) SignRequest(req *http.Request) error {
}
bhash := sha256.New().Sum(body)
// Port in the signature must be that of the reverse proxy port, vCenter's default is port 80
port := "80" // TODO: get from lookup service
port := req.URL.Port()
if port == "" {
port = "80" // Default port for the "Host" header on the server side
}
var buf bytes.Buffer
msg := []string{
nonce,