about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-12 14:11:08 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-12 14:11:08 +0100
commit9d6261f3e32aada6d7bac6b00ec53088968f77e1 (patch)
tree208c2f42e5ff924961e756825fbda1538c3c5678 /src/local
parent0cc8f357d8f44fcfccd141c078d34ed4530fec5b (diff)
downloadchawan-9d6261f3e32aada6d7bac6b00ec53088968f77e1.tar.gz
pager: decrement numload on redirect
because gotoURL will increment it
Diffstat (limited to 'src/local')
-rw-r--r--src/local/pager.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 6877133b..4a3e9b57 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1330,6 +1330,7 @@ proc redirectTo(pager: Pager; container: Container; request: Request) =
   pager.alert("Redirecting to " & $request.url)
   pager.gotoURL(request, some(container.url), replace = container,
     redirectdepth = container.redirectdepth + 1, referrer = container)
+  dec pager.numload
 
 proc fail*(pager: Pager; container: Container; errorMessage: string) =
   dec pager.numload