Commit d869bd3f2ff89563ee389defeed535a204c7b150

Authored by Marko Tikvić
1 parent ab548c502b
Exists in master

filtering fix

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
... ... @@ -3,6 +3,7 @@ package webutility
3 3 import (
4 4 "fmt"
5 5 "net/http"
  6 + "net/url"
6 7 "strings"
7 8 )
8 9  
... ... @@ -49,8 +50,9 @@ func ParseFilters(req *http.Request, header string) (filters Filter) {
49 50 for i, _ := range kvp {
50 51 kv := strings.Split(kvp[i], "::")
51 52 if len(kv) == 2 {
52   - key := kv[0]
53   - val := kv[1]
  53 + key, _ := url.QueryUnescape(kv[0])
  54 + val, _ := url.QueryUnescape(kv[1])
  55 + fmt.Printf("%s: %s\n", key, val)
54 56 filters[key] = val
55 57 }
56 58 }
... ...