Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

fix status code on success

Philipp Seitzf789f06cc0db
diff --git a/public.go b/public.go
index 0aa6841e..30334e53 100644
--- a/public.go
+++ b/public.go
@@ -278,7 +278,7 @@ func handleSubscriptionForm(c echo.Context) error {
makeMsgTpl("Error", "", fmt.Sprintf("%s", err.(*echo.HTTPError).Message)))
}
- return c.Render(http.StatusInternalServerError, tplMessage,
+ return c.Render(http.StatusOK, tplMessage,
makeMsgTpl("Done", "", `Subscribed successfully.`))
}