summaryrefslogtreecommitdiff
path: root/service/http/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/parse.go')
-rw-r--r--service/http/parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/parse.go b/service/http/parse.go
index 1f90930a..9b58d328 100644
--- a/service/http/parse.go
+++ b/service/http/parse.go
@@ -39,8 +39,8 @@ func (d dataTree) push(k string, v []string) {
// mount mounts data tree recursively.
func (d dataTree) mount(i []string, v []string) {
if len(i) == 1 {
- // single value context
- d[i[0]] = v[0]
+ // single value context (last element)
+ d[i[0]] = v[len(v)-1]
return
}