From 538f640538ca7dfe07e475099143b01a7cb4c2c9 Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Mon, 13 May 2024 01:15:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=94=20Redirect=20/=20to=20/v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http/main.go b/http/main.go index c89c08a..74dd413 100644 --- a/http/main.go +++ b/http/main.go @@ -36,8 +36,7 @@ func Serve(bindAddr string) error { } func handleIndex(ctx echo.Context) error { - // return ctx.Redirect(http.StatusTemporaryRedirect, "/v") - return ctx.String(200, ctx.Request().Header.Get("X-Remote-User")) + return ctx.Redirect(http.StatusTemporaryRedirect, "/v") } func handleNewVoting(ctx echo.Context) error {