Merge pull request #750 from prometheus/fabxc-patch-1-1

notify: hex encode deduplication hash
This commit is contained in:
Frederic Branczyk 2017-04-27 14:19:12 +02:00 committed by GitHub
commit cec7341ce7

View File

@ -987,5 +987,5 @@ func (a *loginAuth) Next(fromServer []byte, more bool) ([]byte, error) {
func hashKey(s string) string {
h := sha256.New()
h.Write([]byte(s))
return string(h.Sum(nil))
return fmt.Sprintf("%x", h.Sum(nil))
}