diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-12 14:11:08 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-12 14:11:08 +0100 |
commit | 9d6261f3e32aada6d7bac6b00ec53088968f77e1 (patch) | |
tree | 208c2f42e5ff924961e756825fbda1538c3c5678 /src/local | |
parent | 0cc8f357d8f44fcfccd141c078d34ed4530fec5b (diff) | |
download | chawan-9d6261f3e32aada6d7bac6b00ec53088968f77e1.tar.gz |
pager: decrement numload on redirect
because gotoURL will increment it
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/pager.nim | 1 |
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 |