Explorar o código

fix status code on success

Philipp Seitz %!s(int64=5) %!d(string=hai) anos
pai
achega
f789f06cc0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public.go

+ 1 - 1
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.`))
 }