| Index: appengine/logdog/coordinator/logStream.go
|
| diff --git a/appengine/logdog/coordinator/logStream.go b/appengine/logdog/coordinator/logStream.go
|
| index 6a0d63630b768c22671dae53867215ec231be884..ae2b260dac29596449f3b4737483f3d444d6dae4 100644
|
| --- a/appengine/logdog/coordinator/logStream.go
|
| +++ b/appengine/logdog/coordinator/logStream.go
|
| @@ -356,8 +356,8 @@ func (s *LogStream) validateImpl(enforceHashID bool) error {
|
| if err := types.StreamName(s.Name).Validate(); err != nil {
|
| return fmt.Errorf("invalid name: %s", err)
|
| }
|
| - if len(s.Secret) != types.StreamSecretLength {
|
| - return fmt.Errorf("invalid secret length (%d != %d)", len(s.Secret), types.StreamSecretLength)
|
| + if err := types.PrefixSecret(s.Secret).Validate(); err != nil {
|
| + return fmt.Errorf("invalid prefix secret: %s", err)
|
| }
|
| if s.ContentType == "" {
|
| return errors.New("empty content type")
|
|
|