From 3c9c5b6887399d7b8b00d7feb7ad3653952fc789 Mon Sep 17 00:00:00 2001 From: sia Date: Wed, 27 Nov 2024 21:48:33 +0800 Subject: [PATCH] add head meta --- router/default.go | 1 + src/pages/index.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/router/default.go b/router/default.go index 19b8b2e..0903c74 100644 --- a/router/default.go +++ b/router/default.go @@ -55,6 +55,7 @@ func NewRouter(c *cache.Redis) *mux.Router { path := fmt.Sprintf("github.com/%s/%s/releases/download/%s/%s", userBaisc[0], userBaisc[1], vars["version"], vars["file"]) c.Incr(path) if c.Exists(path) { + fmt.Println("this way ") r.URL.Path = path http.FileServer(http.Dir("./cache")).ServeHTTP(w, r) v, ok := r.Header[http.CanonicalHeaderKey("X-Real-IP")] diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d4bc09d..6d6463a 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -16,6 +16,9 @@ export default function Home() { + + +