fix: extra data after error parsing query string
Alan Pearce alan@alanpearce.eu
Fri, 12 Jul 2024 19:39:56 +0200
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M internal/server/mux.go → internal/server/mux.go
@@ -107,6 +107,8 @@ if pg != "" { 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)