diff options
author | Wolfy-J <[email protected]> | 2019-03-21 18:34:12 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-03-21 18:34:12 +0300 |
commit | 70671d83a718f9d9ca51ad5604fa88a197d91bed (patch) | |
tree | 750db414bf8139884af4fd499a84e97450b3a7bb /service/http/parse.go | |
parent | c5f8f9d12de48d93db2c9ef63acc5bfab4f1d08a (diff) |
last element of POST data
Diffstat (limited to 'service/http/parse.go')
-rw-r--r-- | service/http/parse.go | 4 |
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 } |