Fix path not being rewritten for maxres.jpg.

This commit is contained in:
FireMasterK 2021-06-20 12:38:57 +05:30
parent f95f1a8540
commit 49e3e100cd
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
proxyURL.RawQuery = q.Encode()
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)