From 244a7db7c95c1c53330c370d2074d6e740a16402 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 14 Jun 2024 12:03:21 -0700 Subject: [PATCH] remove spaces --- pkg/wsman/client/hash.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/wsman/client/hash.go b/pkg/wsman/client/hash.go index f98a4d83..e917caca 100644 --- a/pkg/wsman/client/hash.go +++ b/pkg/wsman/client/hash.go @@ -115,13 +115,13 @@ func (c *AuthChallenge) authorize(method, uri string) (string, error) { sb.WriteString(`Digest username="`) sb.WriteString(c.Username) - sb.WriteString(`", realm="`) + sb.WriteString(`",realm="`) sb.WriteString(c.Realm) - sb.WriteString(`", nonce="`) + sb.WriteString(`",nonce="`) sb.WriteString(c.Nonce) - sb.WriteString(`", uri="`) + sb.WriteString(`",uri="`) sb.WriteString(uri) - sb.WriteString(`", response="`) + sb.WriteString(`",response="`) sb.WriteString(response) sb.WriteString(`"`) @@ -132,17 +132,17 @@ func (c *AuthChallenge) authorize(method, uri string) (string, error) { // } if c.Opaque != "" { - sb.WriteString(`, opaque="`) + sb.WriteString(`,opaque="`) sb.WriteString(c.Opaque) sb.WriteString(`"`) } if c.Qop != "" { - sb.WriteString(`, qop="`) + sb.WriteString(`,qop="`) sb.WriteString(c.Qop) - sb.WriteString(`", nc="`) + sb.WriteString(`",nc="`) sb.WriteString(fmt.Sprintf("%08x", c.NonceCount)) - sb.WriteString(`", cnonce="`) + sb.WriteString(`",cnonce="`) sb.WriteString(c.CNonce) sb.WriteString(`"`) }