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 } }