From d869bd3f2ff89563ee389defeed535a204c7b150 Mon Sep 17 00:00:00 2001 From: "marko.tikvic" Date: Fri, 23 Nov 2018 15:20:50 +0100 Subject: [PATCH] filtering fix --- filtering.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/filtering.go b/filtering.go index ab86f30..6107033 100644 --- a/filtering.go +++ b/filtering.go @@ -3,6 +3,7 @@ package webutility import ( "fmt" "net/http" + "net/url" "strings" ) @@ -49,8 +50,9 @@ func ParseFilters(req *http.Request, header string) (filters Filter) { for i, _ := range kvp { kv := strings.Split(kvp[i], "::") if len(kv) == 2 { - key := kv[0] - val := kv[1] + key, _ := url.QueryUnescape(kv[0]) + val, _ := url.QueryUnescape(kv[1]) + fmt.Printf("%s: %s\n", key, val) filters[key] = val } } -- 1.8.1.2