Skip to content

Commit 2e28c49

Browse files
committed
untrack go.work.sum, drops constants
1 parent 6ed85e9 commit 2e28c49

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

Diff for: go.work.sum

-12
This file was deleted.

Diff for: internal/url/url.go

+2-7
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@ import (
77
"strings"
88
)
99

10-
const (
11-
urlUnescape = true
12-
noUrlUnescape = false
13-
)
14-
1510
// ParseQuery parses the URL-encoded query string and returns the corresponding map.
1611
// It takes separators as parameter, for example: & or ; or &;
1712
func ParseQuery(query string, separator byte) map[string][]string {
18-
return doParseQuery(query, separator, urlUnescape)
13+
return doParseQuery(query, separator, true)
1914
}
2015

2116
// ParseQueryWithoutUnescape is a sibling of ParseQuery, but without performing URL unescape of keys and values.
2217
func ParseQueryWithoutUnescape(query string, separator byte) map[string][]string {
23-
return doParseQuery(query, separator, noUrlUnescape)
18+
return doParseQuery(query, separator, false)
2419
}
2520

2621
func doParseQuery(query string, separator byte, urlUnescape bool) map[string][]string {

0 commit comments

Comments
 (0)