diff options
Diffstat (limited to 'plugins/http/parse.go')
-rw-r--r-- | plugins/http/parse.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/http/parse.go b/plugins/http/parse.go index c1038725..d4a1604b 100644 --- a/plugins/http/parse.go +++ b/plugins/http/parse.go @@ -30,7 +30,7 @@ func parseData(r *http.Request) dataTree { // pushes value into data tree. func (d dataTree) push(k string, v []string) { - keys := fetchIndexes(k) + keys := FetchIndexes(k) if len(keys) <= MaxLevel { d.mount(keys, v) } @@ -82,7 +82,7 @@ func parseUploads(r *http.Request, cfg UploadsConfig) *Uploads { // pushes new file upload into it's proper place. func (d fileTree) push(k string, v []*FileUpload) { - keys := fetchIndexes(k) + keys := FetchIndexes(k) if len(keys) <= MaxLevel { d.mount(keys, v) } @@ -111,8 +111,8 @@ func (d fileTree) mount(i []string, v []*FileUpload) { d[i[0]].(fileTree).mount(i[1:], v) } -// fetchIndexes parses input name and splits it into separate indexes list. -func fetchIndexes(s string) []string { +// FetchIndexes parses input name and splits it into separate indexes list. +func FetchIndexes(s string) []string { var ( pos int ch string |