Skip to content

Commit

Permalink
Merge pull request knadh#126 from PhilippSeitz/bugfix/status-on-success
Browse files Browse the repository at this point in the history
fix: status code on success
  • Loading branch information
knadh authored Jun 4, 2020
2 parents 7a467a5 + f789f06 commit ae68bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`))
}

Expand Down

0 comments on commit ae68bd2

Please sign in to comment.