fix: delete response json

This commit is contained in:
email
2022-02-05 13:17:43 +08:00
parent f982391a83
commit 61cf4512b0
4 changed files with 7 additions and 4 deletions

View File

@@ -125,8 +125,7 @@ func (s *Server) registerMemoRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("Failed to delete memo ID: %v", memoId)).SetInternal(err)
}
c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)
c.Response().WriteHeader(http.StatusOK)
c.JSON(http.StatusOK, true)
return nil
})