summaryrefslogtreecommitdiff
path: root/service/http/parse.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-03-21 18:34:12 +0300
committerWolfy-J <[email protected]>2019-03-21 18:34:12 +0300
commit70671d83a718f9d9ca51ad5604fa88a197d91bed (patch)
tree750db414bf8139884af4fd499a84e97450b3a7bb /service/http/parse.go
parentc5f8f9d12de48d93db2c9ef63acc5bfab4f1d08a (diff)
last element of POST data
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
}