From 28039fda22154a8802b9dce42c9efac4adecc69a Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Fri, 13 Jul 2018 12:12:09 +0200 Subject: [PATCH] fmt --- digestAuth.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/digestAuth.go b/digestAuth.go index a75fdf2..dd5c844 100644 --- a/digestAuth.go +++ b/digestAuth.go @@ -77,11 +77,11 @@ func getDigestAuthorization(digestParts map[string]string) string { // These are the correct ha1 and ha2 for qop=auth. We should probably check for other types of qop. var ( - ha1 string - ha2 string + ha1 string + ha2 string nonceCount = 00000001 - cnonce = getCnonce() - response string + cnonce = getCnonce() + response string ) // 'ha1' value depends on value of "algorithm" field @@ -91,7 +91,7 @@ func getDigestAuthorization(digestParts map[string]string) string { case "MD5-sess": ha1 = getMD5( fmt.Sprintf("%s:%v:%s", - getMD5(d["username"] + ":" + d["realm"] + ":" + d["password"]), + getMD5(d["username"]+":"+d["realm"]+":"+d["password"]), nonceCount, cnonce, ),