diff --git a/go.work.sum b/go.work.sum deleted file mode 100644 index acb7f9887..000000000 --- a/go.work.sum +++ /dev/null @@ -1,12 +0,0 @@ -github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/pelletier/go-toml v1.9.1/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= -golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= diff --git a/internal/url/url.go b/internal/url/url.go index 817653043..c6087d41e 100644 --- a/internal/url/url.go +++ b/internal/url/url.go @@ -7,20 +7,15 @@ import ( "strings" ) -const ( - urlUnescape = true - noUrlUnescape = false -) - // ParseQuery parses the URL-encoded query string and returns the corresponding map. // It takes separators as parameter, for example: & or ; or &; func ParseQuery(query string, separator byte) map[string][]string { - return doParseQuery(query, separator, urlUnescape) + return doParseQuery(query, separator, true) } // ParseQueryWithoutUnescape is a sibling of ParseQuery, but without performing URL unescape of keys and values. func ParseQueryWithoutUnescape(query string, separator byte) map[string][]string { - return doParseQuery(query, separator, noUrlUnescape) + return doParseQuery(query, separator, false) } func doParseQuery(query string, separator byte, urlUnescape bool) map[string][]string {