From 70671d83a718f9d9ca51ad5604fa88a197d91bed Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Thu, 21 Mar 2019 18:34:12 +0300 Subject: last element of POST data --- service/http/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/http/parse.go') 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 } -- cgit v1.2.3