mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-12-06 19:16:28 +01:00
Fix path not being rewritten for maxres.jpg.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user