Merge pull request #126 from PhilippSeitz/bugfix/status-on-success

fix: status code on success
This commit is contained in:
Kailash Nadh 2020-06-04 22:34:45 +05:30 committed by GitHub
commit ae68bd2645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,7 +278,7 @@ func handleSubscriptionForm(c echo.Context) error {
makeMsgTpl("Error", "", fmt.Sprintf("%s", err.(*echo.HTTPError).Message))) 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.`)) makeMsgTpl("Done", "", `Subscribed successfully.`))
} }