print debug
This commit is contained in:
parent
01ac42bc11
commit
387734027c
2
main.go
2
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())
|
||||
|
|
Loading…
Reference in New Issue