about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/mux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/server/mux.go b/internal/server/mux.go
index 17445e5..d1a0e38 100644
--- a/internal/server/mux.go
+++ b/internal/server/mux.go
@@ -107,6 +107,8 @@ func NewMux(
 					page, err = strconv.ParseUint(pg, 10, 64)
 					if err != nil || page == 0 {
 						errorHandler(w, r, "Bad query string", http.StatusBadRequest)
+
+						return
 					}
 				}
 				results, err := index.Search(ctx, source, qs, (page-1)*search.ResultsPerPage)