diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-22 18:18:56 +0000 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-22 18:18:56 +0000 |
| commit | 66d6ab349196fd5d95937f533faa9db6ba65ebb3 (patch) | |
| tree | 84ce7dd31c9e4dc10dbb41c5428cc2cb66bb44d9 /backend/section.go | |
| parent | 1c86bdda2a3067ade9aa765d8d87fe27151dd895 (diff) | |
| parent | c66a5cc0809875df0299ebb80be423436c195416 (diff) | |
Merge pull request '[Feat] Stats' (#4) from feat/stats into main
Reviewed-on: https://git.anhgelus.world/anhgelus/small-web/pulls/4
Diffstat (limited to 'backend/section.go')
| -rw-r--r-- | backend/section.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/section.go b/backend/section.go index e2150cb..1b5ab9f 100644 --- a/backend/section.go +++ b/backend/section.go @@ -270,7 +270,7 @@ func (s *Section) handlePagination(w http.ResponseWriter, r *http.Request, maxLo page, err = strconv.Atoi(rawPage) if err != nil || page < 1 { slog.Warn("invalid page number", "rawPage", rawPage) - w.WriteHeader(http.StatusBadRequest) + http.Error(w, "Bad request", http.StatusBadRequest) return nil } } |
