瀏覽代碼

fix status code on success

Philipp Seitz 5 年之前
父節點
當前提交
f789f06cc0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.`))
 }