소스 검색

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