Fix incorrect HTTP resp code on public page. Fixes #772.
This commit is contained in:
parent
89eca5f14b
commit
12b845ef97
1 changed files with 2 additions and 3 deletions
|
@ -233,9 +233,8 @@ func handleOptinPage(c echo.Context) error {
|
||||||
|
|
||||||
// There are no lists to confirm.
|
// There are no lists to confirm.
|
||||||
if len(out.Lists) == 0 {
|
if len(out.Lists) == 0 {
|
||||||
return c.Render(http.StatusInternalServerError, tplMessage,
|
return c.Render(http.StatusOK, tplMessage,
|
||||||
makeMsgTpl(app.i18n.T("public.noSubTitle"), "",
|
makeMsgTpl(app.i18n.T("public.noSubTitle"), "", app.i18n.Ts("public.noSubInfo")))
|
||||||
app.i18n.Ts("public.noSubInfo")))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirm.
|
// Confirm.
|
||||||
|
|
Loading…
Reference in a new issue