From 387734027c295e7d6fc987d0805c8b5a91cb8ce1 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Mon, 22 Nov 2021 08:38:10 +0100 Subject: [PATCH] print debug --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index a27454f..a14b30e 100644 --- a/main.go +++ b/main.go @@ -115,6 +115,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { } path := req.URL.EscapedPath() + fmt.Println(path) path = strings.Replace(path, path_prefix, "", 1) @@ -128,6 +129,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { } proxyURL.RawQuery = q.Encode() + fmt.Println(q.Encode()) if strings.HasSuffix(proxyURL.EscapedPath(), "maxres.jpg") { proxyURL.Path = getBestThumbnail(proxyURL.EscapedPath())