mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
add an util method to convert []byte to string
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -1594,7 +1594,7 @@ func getGCSConfig(r *http.Request) (vfs.GCSFsConfig, error) {
|
||||
}
|
||||
return config, err
|
||||
}
|
||||
config.Credentials = kms.NewPlainSecret(string(fileBytes))
|
||||
config.Credentials = kms.NewPlainSecret(util.BytesToString(fileBytes))
|
||||
config.AutomaticCredentials = 0
|
||||
return config, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user