stacktic
/
dropbox
Archived
1
0
Fork 0

Make compatible with go 1.1

This commit is contained in:
Nick Craig-Wood 2014-07-19 15:36:35 +01:00
parent 811d4db755
commit 04ed0a20f9
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ func (db *Dropbox) createDatastore(key string) (int, string, bool, error) {
return 0, "", false, err
}
}
rhash := sha256.Sum256([]byte(b64key))
hash := sha256.New()
hash.Write([]byte(b64key))
rhash := hash.Sum(nil)
dsID := "." + encodeDBase64(rhash[:])
params := &url.Values{