summaryrefslogtreecommitdiff
path: root/service/http/parse.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-02 16:33:45 +0300
committerWolfy-J <[email protected]>2019-05-02 16:33:45 +0300
commit64f2c19b0a9a33d97bd947e805d0491e68784423 (patch)
tree238b4a3f638b85180804458f97160455fcca1aff /service/http/parse.go
parentcf3e341207893d62bae8a5671118401f745a8f08 (diff)
parent677004f7cb97981f0220e2c65a2e7618505d01dc (diff)
Merge branch 'feature/updates' into pr/issue-121-rename_maxrequest_config_param
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
}