Skip to content

Commit

Permalink
remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike committed Jun 14, 2024
1 parent e02d81d commit 244a7db
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/wsman/client/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(`"`)

Expand All @@ -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(`"`)
}
Expand Down

0 comments on commit 244a7db

Please sign in to comment.