diff options
Diffstat (limited to 'vendor/gopkg.in/ini.v1/data_source.go')
-rw-r--r-- | vendor/gopkg.in/ini.v1/data_source.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/gopkg.in/ini.v1/data_source.go b/vendor/gopkg.in/ini.v1/data_source.go index dc0277ec..bbedf361 100644 --- a/vendor/gopkg.in/ini.v1/data_source.go +++ b/vendor/gopkg.in/ini.v1/data_source.go @@ -66,6 +66,8 @@ func parseDataSource(source interface{}) (dataSource, error) { return sourceFile{s}, nil case []byte: return &sourceData{s}, nil + case io.Reader: + return &sourceReadCloser{ioutil.NopCloser(s)}, nil case io.ReadCloser: return &sourceReadCloser{s}, nil default: |