From f789f06cc0db26cebc58d606d8f96128af0d49be Mon Sep 17 00:00:00 2001 From: Philipp Seitz <44158030+PhilippSeitz@users.noreply.github.com> Date: Thu, 4 Jun 2020 17:42:37 +0200 Subject: [PATCH] fix status code on success --- public.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public.go b/public.go index 0aa6841..30334e5 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.`)) }