Browse Source

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

fix: status code on success
Kailash Nadh 5 years ago
parent
commit
ae68bd2645
1 changed files with 1 additions and 1 deletions
  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.`))
 }