File tree 2 files changed +2
-19
lines changed
2 files changed +2
-19
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,20 +7,15 @@ import (
7
7
"strings"
8
8
)
9
9
10
- const (
11
- urlUnescape = true
12
- noUrlUnescape = false
13
- )
14
-
15
10
// ParseQuery parses the URL-encoded query string and returns the corresponding map.
16
11
// It takes separators as parameter, for example: & or ; or &;
17
12
func ParseQuery (query string , separator byte ) map [string ][]string {
18
- return doParseQuery (query , separator , urlUnescape )
13
+ return doParseQuery (query , separator , true )
19
14
}
20
15
21
16
// ParseQueryWithoutUnescape is a sibling of ParseQuery, but without performing URL unescape of keys and values.
22
17
func ParseQueryWithoutUnescape (query string , separator byte ) map [string ][]string {
23
- return doParseQuery (query , separator , noUrlUnescape )
18
+ return doParseQuery (query , separator , false )
24
19
}
25
20
26
21
func doParseQuery (query string , separator byte , urlUnescape bool ) map [string ][]string {
You can’t perform that action at this time.
0 commit comments