about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/config/config.go6
-rw-r--r--internal/server/mux.go2
2 files changed, 3 insertions, 5 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
 }
diff --git a/internal/server/mux.go b/internal/server/mux.go
index 8c34599..e869e14 100644
--- a/internal/server/mux.go
+++ b/internal/server/mux.go
@@ -295,7 +295,7 @@ func NewMux(
 						source.Importer.String(),
 						source.Key,
 						"search",
-					).AddQuery("query", "{searchTerms}"),
+					).AddRawQuery("query", "{searchTerms}"),
 				},
 			}
 			enc := xml.NewEncoder(w)