From 15339770ed9f6db74d1427aac3148dd2ebb47ea8 Mon Sep 17 00:00:00 2001 From: jau1 <95550641@163.com> Date: Tue, 7 Jan 2020 16:50:29 +0800 Subject: [PATCH] fix a bug --- sysservice/originhttp/httpserverervice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysservice/originhttp/httpserverervice.go b/sysservice/originhttp/httpserverervice.go index a8a4f7d..6a0ba70 100644 --- a/sysservice/originhttp/httpserverervice.go +++ b/sysservice/originhttp/httpserverervice.go @@ -117,7 +117,7 @@ func (slf *HttpRequest) Query(key string) (string, bool) { paramStrList := strings.Split(slf.ParamStr, "&") for _, val := range paramStrList { Index := strings.Index(val,"=") - slf.mapParam[val[0:Index-1]] = val[Index+1:] + slf.mapParam[val[0:Index]] = val[Index+1:] } }