fix yaml human not friendly
This commit is contained in:
2
yaml.go
2
yaml.go
@@ -85,7 +85,7 @@ func (y *Yaml) GetStream(key string, ns ...string) (io.Reader, error) {
|
||||
if !ok {
|
||||
return nil, ErrNotFound
|
||||
}
|
||||
if strings.HasPrefix("b64://", s) {
|
||||
if strings.HasPrefix(s, "b64://") {
|
||||
b, err := base64.StdEncoding.DecodeString(strings.TrimPrefix(s, "b64://"))
|
||||
return bytes.NewReader(b), err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user