diff options
author | Alan Pearce | 2024-07-12 19:39:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-07-12 21:20:15 +0200 |
commit | 442345898802e93b0b884fd0f1c3492e08c34049 (patch) | |
tree | 8843838b3604d5838a0ab6272e145b23e9b38d7d /internal/server/mux.go | |
parent | 5a2d54d9c8751935284293b2ffd396fff0a5d202 (diff) | |
download | searchix-442345898802e93b0b884fd0f1c3492e08c34049.tar.lz searchix-442345898802e93b0b884fd0f1c3492e08c34049.tar.zst searchix-442345898802e93b0b884fd0f1c3492e08c34049.zip |
fix: extra data after error parsing query string
Diffstat (limited to 'internal/server/mux.go')
-rw-r--r-- | internal/server/mux.go | 2 |
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) |