diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2018-05-21 22:12:10 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2018-05-21 23:13:31 -0400 |
| commit | 9a25f47a14d897053424eecd239daeed54da69d1 (patch) | |
| tree | 51b000a78e13c565fb12354f5307063bfccdff4f /data/datasource_vault.go | |
| parent | 52a382ce95402776219434f6e46dd980ef1471af (diff) | |
Adding directory support for file datasources
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'data/datasource_vault.go')
| -rw-r--r-- | data/datasource_vault.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/datasource_vault.go b/data/datasource_vault.go index 9033a804..46cd43c0 100644 --- a/data/datasource_vault.go +++ b/data/datasource_vault.go @@ -46,11 +46,11 @@ func readVault(source *Source, args ...string) ([]byte, error) { var data []byte - source.Type = "application/json" + source.Type = jsonMimetype if len(params) > 0 { data, err = source.VC.Write(p, params) } else if strings.HasSuffix(p, "/") { - source.Type = "application/array+json" + source.Type = jsonArrayMimetype data, err = source.VC.List(p) } else { data, err = source.VC.Read(p) |
