notify: properly hex encode deduplication hash

This commit is contained in:
Fabian Reinartz 2017-04-27 13:10:00 +02:00 committed by GitHub
parent fd4fd115cb
commit 2ed042acad
1 changed files with 1 additions and 1 deletions

View File

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