From b8ee7551aa091af7efcb139829f2a997d4e9c622 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Mon, 16 Jun 2025 00:59:47 +0800 Subject: [PATCH] refactor Dockerfile to streamline build process and remove unnecessary dependencies --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 373767b..f5f3987 100644 --- a/main.go +++ b/main.go @@ -17,6 +17,7 @@ func main() { h.Use(func(ctx context.Context, c *app.RequestContext) { host := string(c.Host()) if strings.HasSuffix(host, OldDomain) { + c.Header("X-Redirected-By", "liteyuki.org") newHost := strings.TrimSuffix(host, OldDomain) + NewDomain scheme := "https" if proto := c.Request.Header.Get("X-Forwarded-Proto"); len(proto) > 0 {