Fix path not being rewritten for maxres.jpg.
This commit is contained in:
parent
f95f1a8540
commit
49e3e100cd
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -77,7 +77,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
proxyURL.RawQuery = q.Encode()
|
proxyURL.RawQuery = q.Encode()
|
||||||
|
|
||||||
if strings.HasSuffix(proxyURL.EscapedPath(), "maxres.jpg") {
|
if strings.HasSuffix(proxyURL.EscapedPath(), "maxres.jpg") {
|
||||||
proxyURL.RawPath = getBestThumbnail(proxyURL.EscapedPath())
|
proxyURL.Path = getBestThumbnail(proxyURL.EscapedPath())
|
||||||
}
|
}
|
||||||
|
|
||||||
request, err := http.NewRequest("GET", proxyURL.String(), nil)
|
request, err := http.NewRequest("GET", proxyURL.String(), nil)
|
||||||
|
|
Loading…
Add table
Reference in a new issue