Skip to content

Commit

Permalink
Fix incorrect HTTP resp code on public page. Fixes #772.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed May 3, 2022
1 parent 89eca5f commit 12b845e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/public.go
Expand Up @@ -233,9 +233,8 @@ func handleOptinPage(c echo.Context) error {

// There are no lists to confirm.
if len(out.Lists) == 0 {
return c.Render(http.StatusInternalServerError, tplMessage,
makeMsgTpl(app.i18n.T("public.noSubTitle"), "",
app.i18n.Ts("public.noSubInfo")))
return c.Render(http.StatusOK, tplMessage,
makeMsgTpl(app.i18n.T("public.noSubTitle"), "", app.i18n.Ts("public.noSubInfo")))
}

// Confirm.
Expand Down

0 comments on commit 12b845e

Please sign in to comment.