Skip to content

Commit

Permalink
delete print log
Browse files Browse the repository at this point in the history
  • Loading branch information
Sianao committed Dec 13, 2024
1 parent 30b8193 commit f634941
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions router/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ func NewRouter(c *cache.Redis) *mux.Router {
http.Error(w, "bad address", 512)
return
}
fmt.Println(r.RequestURI)
r.RequestURI = strings.TrimPrefix(r.RequestURI, "/blob")
var address = fmt.Sprintf("https://raw.githubusercontent.com/%s/%s%s",
userBaisc[0], userBaisc[1], r.RequestURI)
path := fmt.Sprintf("raw.githubusercontent.com/%s/%s%s",
userBaisc[0], userBaisc[1], r.URL.Path)
fmt.Println(address)
if c.Exists(path) {
r.URL.Path = path
http.FileServer(http.Dir("./cache/")).ServeHTTP(w, r)
Expand Down

0 comments on commit f634941

Please sign in to comment.