diff options
Diffstat (limited to 'internal/config/config.go')
-rw-r--r-- | internal/config/config.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index f3c0b57..b5f2ee4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -35,10 +35,8 @@ func (u *URL) JoinPath(elems ...string) *URL { return &URL{u.URL.JoinPath(elems...)} } -func (u *URL) AddQuery(key, value string) *URL { - q := u.URL.Query() - q.Add(key, value) - u.RawQuery = q.Encode() +func (u *URL) AddRawQuery(key, value string) *URL { + u.RawQuery = key + "=" + value return u } |