mirror of
https://github.com/spf13/viper
synced 2025-04-28 00:07:22 +00:00
Merge 8f88ea76a6
into 1508a7ba44
This commit is contained in:
commit
1f33b9a2f2
1 changed files with 3 additions and 1 deletions
4
viper.go
4
viper.go
|
@ -1670,7 +1670,9 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]any) error {
|
|||
}
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
buf.ReadFrom(in)
|
||||
if _, err := buf.ReadFrom(in); err != nil {
|
||||
return ConfigParseError{err}
|
||||
}
|
||||
|
||||
// TODO: remove this once SupportedExts is deprecated/removed
|
||||
if !slices.Contains(SupportedExts, format) {
|
||||
|
|
Loading…
Add table
Reference in a new issue