fix a bug

This commit is contained in:
jau1
2020-01-07 16:50:29 +08:00
committed by GitHub
parent 13c0cc3aba
commit 15339770ed

View File

@@ -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:]
}
}