Always use c.JSON in HandleSessionCheck

This commit is contained in:
ekzyis 2024-07-14 12:01:41 +02:00
parent 2ec59e96eb
commit 23ab67e8fc
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ func HandleSessionCheck(sc context.Context) echo.HandlerFunc {
c.Response().Header().Set("HX-Location", "/")
// htmx requires a 200 response to follow redirects
// see https://github.com/bigskysoftware/htmx/issues/2052
return c.HTML(http.StatusOK, "/")
return c.JSON(http.StatusOK, nil)
}
}