Archived
1
0

Merge pull request #3 from ncw/go1.1compatibility

Make compatible with go 1.1
This commit is contained in:
Arnaud Ysmal 2014-07-19 16:57:48 +02:00
commit 47f8bf4c1d

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{